一个c语言的时间函数? 谢谢了!!!

houqidian 2009-08-29 08:35:27
在vc6.0中时间暂停函数是什么?
...全文
129 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
Gary@Tokyo 2009-09-01
  • 打赏
  • 举报
回复
Sleep
The Sleep function suspends the execution of the current thread for the specified interval.

To enter an alertable wait state, use the SleepEx function.

VOID Sleep(
DWORD dwMilliseconds // sleep time
);

Parameters
dwMilliseconds (毫秒)
[in] Specifies the time, in milliseconds, for which to suspend execution. A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution. A value of INFINITE causes an infinite delay.
Return Values
This function does not return a value.


toplcx 2009-09-01
  • 打赏
  • 举报
回复
学习。。
pearling 2009-09-01
  • 打赏
  • 举报
回复
路过,学习
WayminS 2009-09-01
  • 打赏
  • 举报
回复
学习
zbihong 2009-08-31
  • 打赏
  • 举报
回复
Sleep
wxdcxp 2009-08-31
  • 打赏
  • 举报
回复
Sleep(1000)
表示暂停1秒
闲闲的程序猿 2009-08-31
  • 打赏
  • 举报
回复
Sleep函数,注意第一个字母是大写的
zxcv8356631 2009-08-29
  • 打赏
  • 举报
回复
纯c下的函数 delay 头文件 #include <dos.h>
/* Emits a 440-Hz tone for 500 milliseconds */
#include <dos.h>
int main(void)
{
sound(440);
delay(500);
nosound();

return 0;
}
<a href="http://www.cw4j.cn/composition/37.htm">c函数库:将程序的执行暂停一段时间(毫秒) delay()</a>
arong1234 2009-08-29
  • 打赏
  • 举报
回复
sleep
mstlq 2009-08-29
  • 打赏
  • 举报
回复
VOID Sleep(
DWORD dwMilliseconds // sleep time
);

具体看MSDN
注意大小写……

33,321

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧