time.monotonic() roll over

Ian Kelly ian.g.kelly at gmail.com
Thu Dec 4 11:05:48 EST 2014


On Dec 4, 2014 8:56 AM, "Marko Rauhamaa" <marko at pacujo.net> wrote:
>
> "ast" <nomail at invalid.com>:
>
> > Does any body know when time.monotonic() rolls over ?
>
> Never, according to the documentation you linked.
>
> Admittedly, the documentation confuses the reader by chatting about some
> irrelevant internal Windows details.

Not entirely irrelevant. The implication is that if you go more than 49
days without calling the function on old Windows systems, rollovers could
be missed, which is good to know about. The result would still be
monotonic, but it wouldn't accurately reflect the time elapsed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141204/a9aea7ed/attachment.html>


More information about the Python-list mailing list