1 #ifndef _TIMESTAMP_H___
2 #define _TIMESTAMP_H___
10 * \brief The Timestamp class provides system time and monotonic time helper functions
11 * Timestamp is meant to be a singleton class. Access through instance().
13 * double currentMonotonicTime = amb::Timestamp::instance()->currentTime();
14 * double epocTimeForMonotonicTime = amb::Timestamp::instance()->epochTime(currentMonotonicTime);
25 * \return current monotonic (steady) time in seconds.
31 * \param time monotonic time usually from currentTime()
32 * \return number of seconds.milliseconds since unix epoch
34 double epochTime(double time);
38 * \return current system time in seconds since unix epoch
45 * \return instance of Timestamp;
47 static Timestamp *instance();
50 double startTimeEpoch;
51 static Timestamp* mInstance;