Re: [Python-Dev] PEP 418: Add monotonic clock

2012年3月27日 10:57:12 -0700

> The clock does jump forward when the system suspends. At least some
> existing implementations of steady_clock in C++ already have this problem,
> and I think they all might.
> ....
> Time with respect to power management state changes is something that the
> PEP should address fully, for each platform.
I don't think that Python should workaround OS issues, but document
them correctly. I started with this sentence for time.monotonic():
"The monotonic clock may stop while the system is suspended."
I don't know exactly how clocks behave with system suspend. Tell me if
you have more information.
> (<https://developer.apple.com/library/mac/#qa/qa1340/_index.html>,
> <http://msdn.microsoft.com/en-us/library/aa394362.aspx>,
> <http://upower.freedesktop.org/docs/UPower.html#UPower::Sleeping>).
I will read these links and maybe add them to the PEP.
Victor
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to