Answer the question
In order to leave comments, you need to log in
How to suspend the main and only thread in C++?
I want to make a watch. I only need to put the main thread to sleep for a second. How can I do it? I didn't find anything on the Internet.
Answer the question
In order to leave comments, you need to log in
It's strange that they didn't find it. For Windows - Sleep(1000), for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question