Sleep function in Windows, using C

前端 未结 4 1007
一生所求
一生所求 2020-11-28 11:42

I need to sleep my program in Windows. What header file has the sleep function?

4条回答
  •  野性不改
    2020-11-28 12:25

    SleepEx function (see http://msdn.microsoft.com/en-us/library/ms686307.aspx) is the best choise if your program directly or indirectly creates windows (for example use some COM objects). In the simples cases you can also use Sleep.

提交回复
热议问题