diff options
author | Daniel Neus <[email protected]> | 2016-03-07 20:44:18 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-03-07 20:44:18 +0100 |
commit | 5cafe6d83ad4343d9833386880bb57109c787947 (patch) | |
tree | 32287c430f97392de06ee1d08775e1855bcc3f3f | |
parent | 58c89ae470c68bf300ea937740c233e2b5715535 (diff) |
Use chrono::system_clock instead of chrono::high_resolution_clock in get_system_timestamp_ns()
GH #422
-rw-r--r-- | src/lib/utils/os_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index 8fa099bc6..5f9624532 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -94,7 +94,7 @@ uint64_t get_system_timestamp_ns() } #endif - auto now = std::chrono::high_resolution_clock::now().time_since_epoch(); + auto now = std::chrono::system_clock::now().time_since_epoch(); return std::chrono::duration_cast<std::chrono::nanoseconds>(now).count(); } |