aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-03-10 21:52:16 -0500
committerJack Lloyd <[email protected]>2016-03-10 21:52:16 -0500
commit8bbc2a99ddce2ef8a0ab0b8114ba0edf378d4f1a (patch)
tree300dcc0497963fbeb6903e0f100e7e98138c8cb8
parent3902b51bec8cffce38b93d1340db9af5e076d056 (diff)
parent5cafe6d83ad4343d9833386880bb57109c787947 (diff)
Merge GH #422 Use system_time instead of high_resolution_clock
-rw-r--r--src/lib/utils/os_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index 289733b1d..86776bdd0 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -95,7 +95,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();
}