implement time delay in c

后端 未结 17 1909
我在风中等你
我在风中等你 2020-11-30 05:43

I don\'t know exactly how to word a search for this.. so I haven\'t had any luck finding anything.. :S

I need to implement a time delay in C.

for example I w

17条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 06:18

    system("timeout /t 60"); // waits 60s. this is only for windows vista,7,8
    system("ping -n 60 127.0.0.1 >nul"); // waits 60s. for all windows
    

提交回复
热议问题