This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unstable result of time.monotonic
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, ivb, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords:

Created on 2015-11-05 19:57 by ivb, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.py ivb, 2015-11-05 19:57 test suite
Messages (3)
msg254136 - (view) Author: Ivan Bykov (ivb) Date: 2015-11-05 19:57
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import platform
>>> platform.win32_ver()
('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
>>> 
Result of test.py:
C:\1>"test.py"
0.000000 0.001000
C:\1>"test.py"
0.000000 0.001001
C:\1>"test.py"
0.000000 0.001000
C:\1>"test.py"
0.016000 0.001000
C:\1>"test.py"
0.000000 0.001000
C:\1>"test.py"
0.016000 0.001000
C:\1>"test.py"
0.000000 0.001000
C:\1>"test.py"
0.000000 0.001000
C:\1>"test.py"
0.016000 0.001000
msg254138 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2015-11-05 20:20
> unstable result of time.monotonic

I'm sorry, I don't understand your problem. What do you expect? Why do you consider that your results are a bug? You computed the duration of "import unicodedata" using the system clock and using the monotonic clock. So what?
msg254158 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2015-11-06 01:19
I agree that there's no bug here: the timers are working as expected.

ivb: if you disagree, please explain what behavior you expected, versus what you see.
History
Date User Action Args
2022-04-11 14:58:23adminsetgithub: 69747
2015-11-06 01:19:12eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg254158

resolution: not a bug
stage: resolved
2015-11-05 20:20:23vstinnersetmessages: + msg254138
2015-11-05 19:57:36ivbcreate