Skip to content
  • Wouter Klouwen's avatar
    CTest: use std::chrono::steady_clock for time keeping · e8a4036e
    Wouter Klouwen authored
    It was reported in issue #17345 that CTest does not use monotonic time
    to report test duration. Monotonic clocks are not affected by large NTP
    adjustments or things like daylight savings time.
    
    As CMake 3.10 requires C++11, which introduced std::chrono, this commit
    moves the time keeping in CTest from cmSystemTools::GetTime() to
    std::chrono::steady_clock.
    
    Fixes: #17345
    e8a4036e