开发者

Time Delay (Linux)/(Windows)

开发者 https://www.devze.com 2023-01-13 22:40 出处:网络
I have written a source code with a time delay.In unix I have used the #include <unistd.h> header file and usleepfunction.

I have written a source code with a time delay.In unix I have used the

#include <unistd.h> header file and usleep function.

What is the equivalent to this on windows?

What开发者_高级运维 library and function should I use if I write the same code on windows.


#include <windows.h>

and

::Sleep( 1000 /* milliseconds */ );
0

精彩评论

暂无评论...
验证码 换一张
取 消