X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_time.hpp;h=3e4960e74554d0179c96b4582202d52390c61378;hb=983f27081e422f517cc6712165d2b3a7bf596cb1;hp=13cc733ae05488312b4fb5554d08fcb8fd49bc2d;hpb=1f94577d8c4b1c1a2a1a8f3dceb0daac02dd72b7;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;