-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
boot_time
returns current time on windows
#345
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The windows implementation of boot_time is wrong: it gets the current time, converts windows epoch to unix epoch, but never actually subtracts the boot time of the machine.
Here's a valid implementation in psutil for example: it gets the current time, subtracts the number of milliseconds since boot, and converts this instant to unix epoch.
The text was updated successfully, but these errors were encountered: