[issue20101] Determine correct behavior for time functions on Windows

2014-08-10 Thread Mark Lawrence
Mark Lawrence added the comment: Is there anything else that can be done or needs doing here? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20101 ___

[issue20101] Determine correct behavior for time functions on Windows

2014-08-10 Thread STINNER Victor
STINNER Victor added the comment: time.sleep() and time.monotonic() don't use the same clock. Python cannot fix Windows clocks, it's not a bug. -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org

[issue20101] Determine correct behavior for time functions on Windows

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: As a further datapoint, it would be good to find out whether any of you has NTP enabled, and if so, against what time server. To find out, open the clock settings (Datums- und Uhrzeiteinstellungen ändern), and go to NTP tab (Internetzeit). -- nosy:

[issue20101] Determine correct behavior for time functions on Windows

2014-01-02 Thread STINNER Victor
STINNER Victor added the comment: time.get_clock_info(time) and time.get_clock_info(monotonic) is currently using GetSystemTimeAdjustment(). In msg206886 it was said that GetSystemTimeAdjustment is not the function to look at. Should we modify this function to use NtQueryTimerResolution()

[issue20101] Determine correct behavior for time functions on Windows

2014-01-02 Thread Zachary Ware
Zachary Ware added the comment: Martin v. Löwis wrote: As a further datapoint, it would be good to find out whether any of you has NTP enabled, and if so, against what time server. To find out, open the clock settings (Datums- und Uhrzeiteinstellungen ändern), and go to NTP tab

[issue20101] Determine correct behavior for time functions on Windows

2014-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82df66a091da by Zachary Ware in branch '3.3': Issue #20101: Allow test_monotonic to pass on Windows machines on which http://hg.python.org/cpython/rev/82df66a091da New changeset e2a1400b7db9 by Zachary Ware in branch 'default': Issue #20101: Merge

[issue20101] Determine correct behavior for time functions on Windows

2014-01-02 Thread Tim Peters
Tim Peters added the comment: 1. I'm sync'ing with north-america.pool.ntp.org. But the docs on my box say Your clock is typically updated once a week, and I believe it. 2. I just ran Zach's program again, with the same Python, and _this_ time 'time' passed 25 times (as did 'monotonic').

[issue20101] Determine correct behavior for time functions on Windows

2014-01-02 Thread Zachary Ware
Zachary Ware added the comment: I ran the same test on all of the Windows buildbots, with the following results: x86 XP-4: http://buildbot.python.org/all/builders/x86%20XP-4%20custom/builds/33/steps/test/logs/stdio monotonic: good time: good clock/perf_counter: 10 failures x86 Windows7

[issue20101] Determine correct behavior for time functions on Windows

2014-01-01 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20101 ___ ___

[issue20101] Determine correct behavior for time functions on Windows

2014-01-01 Thread Tim Peters
Tim Peters added the comment: I'm not sanguine about fixing any of this :-( The Microsoft docs are awful, and the more web searches I do the more I realize that absolutely everyone is confused, just taking their best guesses. FYI, here are results from your new program on my 32-bit Vista

[issue20101] Determine correct behavior for time functions on Windows

2013-12-31 Thread Zachary Ware
New submission from Zachary Ware: For previous discussion, see issue1. To summarize, time on Windows is far from straight-forward, and currently for t1 = time.monotonic() time.sleep(0.5) t2 = time.monotonic() dt = t2-t1 dt may end up as very slightly smaller than 0.5 (0.499003017485