[Python-ideas] time.Timer

Chris Angelico rosuav at gmail.com
Wed Feb 26 19:32:12 CET 2014


On Thu, Feb 27, 2014 at 5:21 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> Since the frame function that increments the counter does not care if it is
> reset to 0, I might have the FPS reported reset it. Either way is a minor
> detail.

Only if you have an atomic increment operation, which I don't believe
Python exposes. But yes, that's a minor detail. I actually hadn't
thought through all that when I first said it - it was just a habit of
"don't write to anything from two threads unless you really have to".

ChrisA


More information about the Python-ideas mailing list