From 5cafe6d83ad4343d9833386880bb57109c787947 Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Mon, 7 Mar 2016 20:44:18 +0100 Subject: Use chrono::system_clock instead of chrono::high_resolution_clock in get_system_timestamp_ns() GH #422 --- src/lib/utils/os_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/utils') 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(now).count(); } -- cgit v1.2.3