I just posted to http://www.perlmonks.org/?node_id=433565 (Converting POSIX format date/times to epoch seconds) a change to convert the WMIC boot time output. not sure if it would work for older systems but it works on Windows 7. requires use of the (not so great named) HTTP::Date package and a simple modification. code allows use of WMIC command to get the seconds at time of boot and time() can be used at that point to get the up time. GetTickCount was giving me a time (in ms) of 13 days up time on my system which has been up for 150+ days - the change to HTTP::Date is small and allowed me to report the correct up time.
In reply to Re: Uptime with Win32::GetTickCount()
by Anonymous Monk
in thread Uptime with Win32::GetTickCount()
by BioHazard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |