You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Use monotonic clock to compute durations (getsentry#631)
* fix: Use monotonic clock to compute durations
In summary, care must be taken when computing durations. Monotonic
clocks are not subject to system clock adjustments or system clock skew.
The difference between any two chronologically recorded time values is
guaranteed to never be negative.
The same guarantee above does not exist for the difference between two
calls to datetime.now() and friends.
More details and rationale see PEP 418.
Resources:
PEP 418 -- Add monotonic time, performance counter, and process time functions
https://www.python.org/dev/peps/pep-0418/
PEP 564 -- Add new time functions with nanosecond resolution
https://www.python.org/dev/peps/pep-0564/
* fix: Remove camelCasing
Co-authored-by: Markus Unterwaditzer <markus@unterwaditzer.net>
0 commit comments