We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You need to sleep for less than a second.
The C++11 chrono library provides a direct solution to this problem in the thread library. The library offers a number of different time resolutions.
using std::chrono::milliseconds; std::this_thread::sleep_for(milliseconds(10));
Here's some examples of using other duration types
using std::chrono::seconds; using std::chrono::microseconds; std::this_thread::sleep_for(microseconds(2000)); std::this_thread::sleep_for(seconds(1));