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.

Author Red Glyph
Recipients Red Glyph, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-08-14.20:32:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565814761.83.0.783590608069.issue37859@roundup.psfhosted.org>
In-reply-to
Content
Tested with 
- Python 3.7.4, 64-bit, Windows version (installer version)
- python-3.8.0b3-embed-amd64.zip
- python-3.7.2.post1-embed-amd64.zip 
on Windows 7 x64 Professional

time.process_time() always returns the same value. If I check the value of time.process_time_ns(), sometimes it is constant, sometimes I observe a few changes, then it becomes constant too.

Here is a log of an example session, I'm waiting at least 1-2 seconds between each command:

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import time
>>> time.process_time()
0.1092007
>>> time.process_time()
0.1092007
>>> time.process_time_ns()
109200700
>>> time.process_time_ns()
124800800
>>> time.process_time_ns()
124800800
>>> time.process_time()
0.1248008
>>> time.process_time()
0.1248008
>>> time.process_time()
0.1248008
>>> time.process_time_ns()
124800800
>>> time.process_time_ns()
124800800
>>> time.process_time_ns()
124800800
>>> time.process_time_ns()
124800800
>>> time.clock()

Warning (from warnings module):
  File "__main__", line 1
DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead
77.006126126
>>> time.clock()
79.245575778
>>> time.clock()
80.801103036
>>> time.process_time()
0.1248008
>>>
History
Date User Action Args
2019-08-14 20:32:41Red Glyphsetrecipients: + Red Glyph, paul.moore, tim.golden, zach.ware, steve.dower
2019-08-14 20:32:41Red Glyphsetmessageid: <1565814761.83.0.783590608069.issue37859@roundup.psfhosted.org>
2019-08-14 20:32:41Red Glyphlinkissue37859 messages
2019-08-14 20:32:41Red Glyphcreate