On Tue, 10 May 2016 11:47 pm, Chris Angelico wrote: > On Tue, May 10, 2016 at 11:40 PM, Steven D'Aprano <st...@pearwood.info> > wrote: >> You are asking the player to hit enter at 10 seconds. *Exactly* ten >> seconds. The computer can measure time to well under a millionth of a >> second, I'm pretty sure that nobody, no matter how skillful, can be >> expected to hit enter after exactly 10.000000 seconds, not 10.000001 or >> 9.999999 seconds. >> > > But the times were being calculated at one-second resolution, which > solves that but raises its own issues.
Ah, I didn't realise that time.strftime("%S") was one-second resolution (obvious in hindsight, duh!) and the call to time.time() is apparently unused. -- Steven -- https://mail.python.org/mailman/listinfo/python-list