Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-7520) Update Puppet profiling timers to use monotonic clock
This commit updates Puppet::Util::Profiler::WallClock and Puppet::Util::Profiler::Aggregate to use Process.clock_gettime(Process::CLOCK_MONOTONIC) instead of Time.now. Time.now returns a value from the OS REALTIME clock which can be affected by events like NTP updates. Process.clock_gettime(Process::CLOCK_MONOTONIC) uses a monotonic clock which isn't affected by things like NTP updates.
- Loading branch information