-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Question: DURATION #2704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@zimmerle is the original author of this. And @martinhsv is very active for this project. |
However, |
#1011 for related perf_* |
I don't understand that comment. DURATION is implemented as a variable of type double, which means it can and will return a number like 0.024000 indicating 24 milliseconds -- or 1.315 indicating 1315 milliseconds. |
Sorry for the |
Currently, the
DURATION
is usingCLOCK_PROCESS_CPUTIME_ID
since 2015, introduced in commit a4cf218.For time, nginx switch to
CLOCK_MONOTONIC
/CLOCK_MONOTONIC_FAST
since 2018.For openjdk,
nanoTime
usingCLOCK_MONOTONIC
. For macOS, openjdk usemach_absolute_time
andmach_timebase_info
, however,CLOCK_MONOTONIC
is available to.Would it ok to switch
CLOCK_MONOTONIC
?The text was updated successfully, but these errors were encountered: