Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .uptime() method #359

Closed
giampaolo opened this issue May 23, 2014 · 4 comments
Closed

Add .uptime() method #359

giampaolo opened this issue May 23, 2014 · 4 comments

Comments

@giampaolo
Copy link
Owner

From [email protected] on March 17, 2013 09:49:58

Currently psutil supports .BOOT_TIME attribute, but this attribute is not a 
subject to clock updates done by NTP daemon/ntpdate and such software, at least 
on linux. On the other hand, methods usually used to get uptime (subtraction of 
.BOOT_TIME from time.time()) are subject to clock updates, meaning that this 
attribute cannot be used to get system uptime.

Original issue: http://code.google.com/p/psutil/issues/detail?id=359

@giampaolo
Copy link
Owner Author

From g.rodola on March 19, 2013 07:10:17

Agreed. 
A new psutil.get_boot_time() function is now available. 
I chose that name in order to be consistent with BOOT_TIME.
Done in revision dfd6641057c8 .

Status: FixedInSVN
Labels: Milestone-0.6.2

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 18:21:49

Status: FixedInHG

@giampaolo
Copy link
Owner Author

From g.rodola on April 11, 2013 02:17:40

Labels: -Milestone-0.6.2 Milestone-0.7.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 12, 2013 11:21:27

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant