15 inline double Time() {
16 std::chrono::duration<double> now = std::chrono::system_clock::now().time_since_epoch();
21 inline void Sleep(
const float sleep_time) {
22 std::chrono::duration<double> chrono_sleep_time(sleep_time);
23 std::this_thread::sleep_for(chrono_sleep_time);
Definition binarySemaphore.hpp:45
void Sleep(const float sleep_time)
Make the calling thread sleep for the given period of time given as seconds.
Definition defines.hpp:26
double Time()
Return time as seconds since epoch with micro second precision.
Definition defines.hpp:18