+ 1

Timer

Hello please tell me how between two "cout" to make a break 3 seconds. C ++

13th Jan 2018, 1:24 PM
ŠœŠøхŠ°ŠøŠ»
2 Answers
- 1
#include <windows.h> ... cout <<... Sleep(3000); cout <<... Inside Sleep(...) you put time value in miliseconds EDIT: Don't know why, but sometimes it works wrong, so you have to use a loop with Sleep(1) that works 3000 times
13th Jan 2018, 1:56 PM
rafal
+ 1
thanks
13th Jan 2018, 1:57 PM
ŠœŠøхŠ°ŠøŠ»