7#ifndef FGF_LIB_DEFINES_HPP_H_
8#define FGF_LIB_DEFINES_HPP_H_
19 std::chrono::duration<double> now = std::chrono::system_clock::now().time_since_epoch();
26 inline void Sleep(
const float sleep_time) {
27 std::chrono::duration<double> chrono_sleep_time(sleep_time);
28 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