This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Finding either boot time or login time
- From: Owen Rees <owen dot rees at hp dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 02 Feb 2009 17:37:26 +0000
- Subject: RE: Finding either boot time or login time
- References: <7b4dai$em8g8@dmzms99901.na.baesystems.com>
--On 02 February 2009 11:54 -0500 Cooper, Karl \(US SSA\) wrote:
I don't know perl, but I did try both of these one-liners on my
Cygwin 1.7 setup, and the output differs (by one second). I thought
that was interesting.
I get a one second difference between the two formulae as well (due to the
use of 'int' in one but not the other) but that is insignificant compared
to the 1 hour and 43 minutes by which both are wrong (and that is since
rebooting at 08:57 this morning).
As far as I can tell, uptime does not include time spent in hibernation (or
suspend/sleep probably).
A little web searching suggests that not counting sleep time is probably
consistent with recent Linux behaviour.
I also noticed that the Windows Vista 'systeminfo' command gives the same
wrong answer for "System Boot Time".
--
Owen Rees; speaking personally, and not on behalf of HP.
========================================================
Hewlett-Packard Limited. Registered No: 690597 England
Registered Office: Cain Road, Bracknell, Berks RG12 1HN
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/