How do I find out how long a computer was on for?
Thanks,
-Sir Loin
Printable View
How do I find out how long a computer was on for?
Thanks,
-Sir Loin
Use the GetTickCount API. It return the number of miliseconds that Windows has been running.
VB Code:
Private Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long
Thanks.