31 std::this_thread::sleep_for(std::chrono::duration<double>(
seconds));
36 return std::chrono::time_point_cast<std::chrono::duration<double>>(std::chrono::system_clock::now()).
time_since_epoch().count();
A mini-server for performing network communication in the background.
double now() override
Return the current time in seconds, relative to an arbitrary starting point.
static double nowSystem()
void delay(double seconds) override
Wait for a certain number of seconds.
bool isValid() const override
Check if time is valid (non-zero).
static void delaySystem(double seconds)