【问题标题】:Time Delay (Linux)/(Windows)时间延迟 (Linux)/(Windows)
【发布时间】:2010-09-02 07:58:02
【问题描述】:

我写了一个有时间延迟的源代码。在unix中我使用了

#include <unistd.h> 头文件和usleep 函数。

windows 上这个相当于什么?

如果我在windows上写相同的代码,我应该使用什么库和函数。

【问题讨论】:

    标签: c windows linux


    【解决方案1】:
    #include <windows.h>
    

    和

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

    【讨论】:

      猜你喜欢
      • 2012-06-23
      • 1970-01-01
      • 2013-11-22
      • 2011-03-26
      • 2011-02-12
      • 1970-01-01
      • 1970-01-01
      • 2011-10-08
      • 2011-01-11
      相关资源
      最近更新 更多