暂停一段时间? [英] pause for some secs?
问题描述
大家好,
我想要一个功能让程序暂停几秒但是K& R
没有为此我列出任何东西甚至看着指数。任何人都可以帮助
吗?非常感谢。
-
Kapteyn的明星
Hello all,
I want a function to make the program pause for a few seconds but K&R
have not listed anything for this i even looked in index. can anyone
help? Thank you very much.
--
Kapteyn''s Star
推荐答案
Kapteyn''s Star写道:
Kapteyn''s Star wrote:
大家好,
我想要一个函数让程序暂停几秒钟,但K& R
没有列出任何东西,我甚至看了索引。任何人都可以帮助
吗?非常感谢你。
Hello all,
I want a function to make the program pause for a few seconds but K&R
have not listed anything for this i even looked in index. can anyone
help? Thank you very much.
标准C中不可用。
在POSIX中你可以使用睡眠(3)
再见,Jojo
Not possible in Standard C.
In POSIX you could use sleep(3)
Bye, Jojo
Joachim Schmitz说:
Joachim Schmitz said:
Kapteyn''s Star写道:
Kapteyn''s Star wrote:
> Hello all,
我想要一个函数让程序暂停几秒但K& R
没有列出任何东西为此我甚至看了索引。任何人都可以帮忙吗?非常感谢你。
>Hello all,
I want a function to make the program pause for a few seconds but K&R
have not listed anything for this i even looked in index. can anyone
help? Thank you very much.
标准C中不可能。
Not possible in Standard C.
实际上,你可以做到这一点,尽管相当蹩脚繁忙的循环,使用时间()。
< snip>
-
Richard Heathfield< http://www.cpax.org.uk>
电子邮件:-http:// www。 + rjh @
谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>
Usenet是一个奇怪的放置" - dmr 1999年7月29日
Actually, you can do it, albeit rather lamely in a busy loop, using time().
<snip>
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Joachim Schmitz写道:
Joachim Schmitz wrote:
Kapteyn''s Star写道:
Kapteyn''s Star wrote:
> Hello all,
我想要一个函数让程序暂停几秒但K& R
还没有列出对于这一切,我甚至看了索引。任何人都可以帮忙吗?非常感谢你。
>Hello all,
I want a function to make the program pause for a few seconds but K&R
have not listed anything for this i even looked in index. can anyone
help? Thank you very much.
标准C中不可用。
在POSIX中你可以使用睡眠(3)
再见,Jojo
Not possible in Standard C.
In POSIX you could use sleep(3)
Bye, Jojo
感谢Joachim。
-
Kapteyn'的明星
Thanks Joachim.
--
Kapteyn''s Star
这篇关于暂停一段时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!