AGulev
AGulev/defold-extension-uptime/uptime
Time elapsed since the device booted, in seconds.
- GitHub: AGulev/defold-extension-uptime — pinned to
1.2.0- Pick a release from AGulev/defold-extension-uptime releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as uptime from "uptime"
- Pick a release from AGulev/defold-extension-uptime releases and add its Source code (zip) URL (or a packaged
Functions
get(): number
Returns the time since the device booted, in seconds.
Returns
number— Seconds since boot.