Skip to content

Address issues with os.time #330

Closed
Closed

Description

@davydog187

Currently there's two issues with os

  1. os.clock() says it returns time since "boot", but it really is since the first time since its called (we dont actually call it in the install as it claims). I'm not sure what the Lua stdlib expects here, but we should call boot_offset() in install to properly seed the value

  2. os.time() returns seconds, which is probably standard behavior. I think we should either change this to millisecond precision, or expose two new functions os.time_ms() and os.time_us()

Activity

  1. added theissue type on Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions