This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]