Skip to content

Use clock_gettime for all performance timestamps

yorickpeterse-staging requested to merge performance-clock-adjustments into master

What does this MR do?

This MR adjusts the performance monitoring code to use Process.clock_gettime (thus clock_gettime(3)) instead of Time.now.

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Using Time.now / Time.new adds more overhead than Process.clock_gettime, it also doesn't provide a way of getting timestamps in nanoseconds (which Process.clock_gettime does allow).

What are the relevant issue numbers?

None.

Does this MR meet the acceptance criteria?

Merge request reports

Loading