baidu-research / DeepBench

Benchmarking Deep Learning operations on different hardware
Apache License 2.0
1.07k stars 239 forks source link

better parameter for getting steady system time #109

Closed Peter9606 closed 5 years ago

Peter9606 commented 5 years ago

I came across the timer.cpp and noticed that CLOCK_REALTIME is sued for the first parameter of clock_gettime system function. According to the clock_gettime manual, it's better to use CLOCK_MONOTONIC_RAW to do the measurement, as it isn't affected by either adjtime or NTP.

Peter9606 commented 5 years ago

wrong place to post