This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re:
- From: John Love-Jensen <eljay at adobe dot com>
- To: <gcc-help at gcc dot gnu dot org>, Ulrich Prakash <uprakash at npd dot hcltech dot com>
- Date: Mon, 07 Apr 2003 10:41:09 -0500
- Subject: Re:
Hi Prakash,
If you "man usleep" you'll notice that it specifies that "actual suspension
may be longer than the amount of time specified".
> Please let me know if there is a way of achieving a sleep for a SPECIFIC
precision value in milliseconds range...
Depends on the facilities of your operating system and platform, not on the
capabilities of GCC.
You could try a busy loop, or a vertical blanking interrupt, or a specific
OS call giving more exacting sleep control.
Sincerely,
--Eljay