Function opensn::Sleep
Defined in File timer.h
Function Documentation
-
void opensn::Sleep(std::chrono::duration<double> time)
Puts the current thread to sleep.
Note
To specify different times
std::chrono
allows you to change the unit with, e.g.,opensn::Sleep(std::chrono::milliseconds(100))
sleeps for 100 milliseconds,std::Sleep(std::chrono::seconds(1))
sleeps for 1 second.- Parameters:
time – Time to sleep for.