X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fcore%2Ffunctions.hpp;h=3c372274fc5923b0d96426d5cfcc0129cd27173b;hp=6b4a4e2b973b7574da78b5b4e3e6598e5c1cd2c2;hb=94fc4366adedbf26ca6ef3104f88d41fa85f5a72;hpb=303d3e2584497a05fc715fbf32b57dcf81805f38 diff --git a/include/anna/core/functions.hpp b/include/anna/core/functions.hpp index 6b4a4e2..3c37227 100644 --- a/include/anna/core/functions.hpp +++ b/include/anna/core/functions.hpp @@ -411,7 +411,7 @@ struct functions { // Note that CLOCK_MONOTONIC is subject to discontinuities from system time // adjustment in Linux. CLOCK_MONOTONIC_RAW was defined to get around this // (gets hardware time not adjusted by NTP). - clock_gettime(CLOCK_MONOTONIC_RAW, &ts); // works + clock_gettime(CLOCK_MONOTONIC, &ts); // works Microsecond result((Microsecond::type_t)1000000 * ts.tv_sec + ts.tv_nsec / 1000); return result;