projects
/
profile
/
ivi
/
automotive-message-broker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07ae461
)
use monotonic clock
author
Kevron Rees
<kevron.m.rees@intel.com>
Thu, 10 Apr 2014 23:45:50 +0000
(16:45 -0700)
committer
Kevron Rees
<kevron.m.rees@intel.com>
Thu, 10 Apr 2014 23:45:50 +0000
(16:45 -0700)
lib/timestamp.cpp
patch
|
blob
|
history
diff --git
a/lib/timestamp.cpp
b/lib/timestamp.cpp
index
937f8f5
..
112a7d1
100644
(file)
--- a/
lib/timestamp.cpp
+++ b/
lib/timestamp.cpp
@@
-6,7
+6,7
@@
double amb::currentTime()
{
- auto tm = std::chrono::
high_resolution
_clock::now();
+ auto tm = std::chrono::
steady
_clock::now();
double time = std::chrono::duration_cast<std::chrono::milliseconds>(tm.time_since_epoch()).count() / 1000.00;