Server Uptime

tehon3299

Centurion
Joined
Jan 6, 2003
Messages
155
Location
Liverpool, NY
What would be the best way to display the uptime of a computer on a webpage? Should I use aspx? Also, is there a way to get the running time of the computer?

Thanks!
 
Yes of course, you will need to use modulo arithmetic:

Perhaps this then?

Minutes = (Milliseconds \ 60000) Mod 60
Hours = (Milliseconds \ 3600000) Mod 24
Days = Milliseconds \ 86400000
 
Back
Top