9#ifndef __PHOENIX_THREAD_CLOCK_H__
10#define __PHOENIX_THREAD_CLOCK_H__
20typedef std::chrono::time_point<std::chrono::steady_clock>
PhoenixTime;
31 T ellapsedTimeUnit = (T)ellapsedTime;
32 return ellapsedTimeUnit.count();
PhoenixTime phoenix_thread_clock()
Get the current time.
std::chrono::time_point< std::chrono::steady_clock > PhoenixTime
std::chrono::nanoseconds PNanoSecond
std::chrono::seconds PSecond
PEllapsedTime phoenix_ellapsedTime(PhoenixTime referenceTime)
Compute an ellapsed time in the given unit.
std::chrono::microseconds PMicroSecond
std::chrono::steady_clock PhoenixClock