time.monotonic() roll over

Chris Angelico rosuav at gmail.com
Thu Dec 4 15:02:44 EST 2014


On Fri, Dec 5, 2014 at 5:44 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Chris Angelico <rosuav at gmail.com>:
>
>> ... what you said  There's no way to guarantee to keep calling the
>> function. You have to depend on upstream.
>
> The caveats I listed are real concerns for the modern-day programmer.
> However, they are of a different nature than the complaint against
> time.monotonic().

But they're also reasons you can't have Python code around the
problem. Anyway, it's only an issue for one platform, and only for
some versions of it; basically, if you're targeting anything other
than Windows XP, you should be able to use time.monotonic() without
concerns.

ChrisA



More information about the Python-list mailing list