0
C++ timer important help!
Guys can you tell me what is the code from which our code will take take according how we set that code to output: For ex: like my code is cout<<"sololearn is cool"; So i want this code will output 2second later so from which code we can do this?? Thanks, Alz_47 Yt
2 Respostas
+ 1
You can use the sleep_for() method from the standard library:
https://en.cppreference.com/w/cpp/thread/sleep_for
+ 1
in java i do it by multi threading I'm not sure about C++. if C++ supports threads then you can do it.