Retro Rocket OS
Loading...
Searching...
No Matches
UPTIME$ Function
UPTIME$

Returns the system uptime as a human-readable string.

The value represents how long the system has been running since it was started, formatted into days, hours, minutes, and seconds.


Examples

REM Print formatted uptime
PRINT "Uptime: "; UPTIME$
REM Include uptime in a status message
PRINT "System has been running for "; UPTIME$
REM Simple log output
PRINT "["; UPTIME$; "] System ready"

Notes

  • Returns a string such as "0 days, 6 hours, 5 mins 23 secs".
  • Intended for display purposes rather than timing.
  • For numeric timing or comparisons, use UPSECS or TICKS.

See also: UPSECS ยท TICKS