Skip to content
Snippets Groups Projects
Commit 8288e62e authored by rswindell's avatar rswindell
Browse files

Allowing querying of uptime.

parent 32a79bcb
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,11 @@ if(request.charAt(0)=='?') { // Handle "special" requests
writeln(system.os_version);
break;
case "uptime":
t=system.uptime;
writeln("Duration: " + String(time()-t));
writeln(t);
writeln(system.timestr(t) + " 0x" + t.toString(16));
case "time":
t=time();
writeln(system.timestr(t) + " " + system.zonestr() + " 0x" + t.toString(16));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment