Skip to Content
defold-typescript libraries
AGulev

AGulev/defold-extension-uptime/uptime

Time elapsed since the device booted, in seconds.

  • GitHub: AGulev/defold-extension-uptime — pinned to 1.2.0
    1. Pick a release from AGulev/defold-extension-uptime releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as uptime from "uptime"

Functions

get(): number

Returns the time since the device booted, in seconds.

Returns

  • number — Seconds since boot.

On this page