why c++11 sleep_for microseconds actually sleep for millisecond?
I call this function in my centos 7 server.
I find std::this_thread::sleep_for(chrono::nanoseconds(1)) actually sleep for one ms, Is there any explanation? I think it may be caused by os setting?
Aucun commentaire:
Enregistrer un commentaire