Does standard C have anything like Python's time.sleep() function?
time.sleep()
Collapse
This topic is closed.
X
X
-
Bart NessuxTags: None -
Thomas Heller
Re: time.sleep()
Bart Nessux <bart_nessux@ho tmail.com> writes:
[color=blue]
> Does standard C have anything like Python's time.sleep() function?[/color]
I don't think so. IIRC, on windows the win32 api Sleep() is used, on
linux probably select(). Read the source to find out.
Thomas
-
Bob Ippolito
Re: time.sleep()
On 2004-03-02 13:05:01 -0500, Bart Nessux <bart_nessux@ho tmail.com> said:
[color=blue]
> Does standard C have anything like Python's time.sleep() function?[/color]
It's not really "standard" but you can usually get away with nanosleep
or select.
-bob
Comment
Comment