Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:

Can you explain why you think this is the wrong behavior, and what operating 
system and version of Python you're using?


from https://docs.python.org/3/library/time.html#time.perf_counter

Return the value (in fractional seconds) of a performance counter, i.e. a clock 
with the highest available resolution to measure a short duration. It does 
include time elapsed during sleep and is system-wide. The reference point of 
the returned value is undefined, so that only the difference between the 
results of two calls is valid.


Returning the uptime seems like acceptable behavior to me, since "the reference 
point ... is undefined".

----------
nosy: +Dennis Sweeney

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43585>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to