How do you add a timed delay to a C++ program?

后端 未结 14 2170
情话喂你
情话喂你 2020-11-28 02:11

I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at?

I wish I had more

14条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 02:40

    On Windows you can include the windows library and use "Sleep(0);" to sleep the program. It takes a value that represents milliseconds.

提交回复
热议问题