X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_time.hpp;h=3e4960e74554d0179c96b4582202d52390c61378;hb=HEAD;hp=13cc733ae05488312b4fb5554d08fcb8fd49bc2d;hpb=e3cd78b53b9a39913d847c4ef1779f14a391177f;p=apitrace diff --git a/common/os_time.hpp b/common/os_time.hpp index 13cc733..3e4960e 100644 --- a/common/os_time.hpp +++ b/common/os_time.hpp @@ -73,7 +73,7 @@ namespace os { return counter.QuadPart; #elif defined(__linux__) struct timespec tp; - if (clock_gettime(CLOCK_REALTIME, &tp) == -1) { + if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1) { return 0; } return tp.tv_sec * 1000000000LL + tp.tv_nsec;