开发者

Time Delay (Linux)/(Windows)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜