Commit 3719b5dc authored by Michael Ott's avatar Michael Ott
Browse files

Add macros for ns to us,ms,s conversion

parent 25835b1e
......@@ -14,6 +14,10 @@
#define S_TO_NS(x) x*1000000000ll
#define MS_TO_NS(x) x*1000000ll
#define US_TO_NS(x) x*1000ll
#define NS_TO_US(x) x/1000ll
#define NS_TO_MS(x) x/1000000ll
#define NS_TO_S(x) x/1000000000ll
static uint64_t getTimestamp() {
boost::posix_time::ptime epoch(boost::gregorian::date(1970,1,1));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment