17 #ifndef COM_BORA_SOFTWARE__BALAU_SYSTEM__SLEEP 18 #define COM_BORA_SOFTWARE__BALAU_SYSTEM__SLEEP 32 public:
static void sleep(
size_t s) {
33 std::this_thread::sleep_for(std::chrono::seconds(s));
40 std::this_thread::sleep_for(std::chrono::milliseconds(ms));
47 std::this_thread::sleep_for(std::chrono::microseconds(us));
54 std::this_thread::sleep_for(std::chrono::nanoseconds(ns));
66 #endif // COM_BORA_SOFTWARE__BALAU_SYSTEM__SLEEP static void sleep(size_t s)
Sleep for the indicated number of seconds.
Definition: Sleep.hpp:32
static void milliSleep(size_t ms)
Sleep for the indicated number of milli-seconds.
Definition: Sleep.hpp:39
static void nanoSleep(size_t ns)
Sleep for the indicated number of nano-seconds.
Definition: Sleep.hpp:53
static void microSleep(size_t us)
Sleep for the indicated number of micro-seconds.
Definition: Sleep.hpp:46
Sleep utilities.
Definition: Sleep.hpp:28
System utilities and wrappers.
Definition: HttpServerConfiguration.hpp:30