projects
/
profile
/
ivi
/
automotive-message-broker.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #19 from tripzero/master
[profile/ivi/automotive-message-broker.git]
/
lib
/
timestamp.cpp
1
#include "timestamp.h"
2
3
#include <time.h>
4
#include <iostream>
5
#include <chrono>
6
7
double amb::currentTime()
8
{
9
auto tm = std::chrono::steady_clock::now();
10
11
double time = std::chrono::duration_cast<std::chrono::milliseconds>(tm.time_since_epoch()).count() / 1000.00;
12
13
return time;
14
}