Win32::Uptime - Calculate uptime for Win32 systems
1.02
use Win32::Uptime; print Win32::Uptime::uptime(); # in milliseconds
Win32::Uptime
This method retrieves the number of milliseconds that have elapsed since the system was started.
If uptime is more than notorious 49.7 days, and you have pagefile in your system, it will be calculated correctly. If not, you lose.
Takes no parameters.
Serguei Trouchelle <stro@cpan.org>
Copyright (c) 2007-2010 Serguei Trouchelle. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Win32::Uptime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::Uptime
CPAN shell
perl -MCPAN -e shell install Win32::Uptime
For more information on module installation, please visit the detailed CPAN module installation guide.