25 #ifndef __I6ENGINE_UTILS_REALTIMECLOCK_H__
26 #define __I6ENGINE_UTILS_REALTIMECLOCK_H__
33 #include "boost/thread.hpp"
43 explicit RealTimeClock(
const boost::function<
void(
void)> & f);
53 uint64_t getCurrentTime(uint64_t lastTime)
const;
58 void setCurrentTime(uint64_t time);
69 std::chrono::time_point<std::chrono::high_resolution_clock> _startTime;
73 boost::function<void(void)> _update;
75 std::atomic<bool> _running;
77 boost::thread _thread;