News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

_sleep

Started by Kempelen, April 05, 2008, 01:31:42 PM

Previous topic - Next topic

Kempelen

_sleep function cause the current thread to stop execution for seconds . Others compilers uses milliseconds instead. Is there any way to sleep for milliseconds in PellesC

Thx
FS

severach


keremg

Quote from: severach on April 06, 2008, 07:39:07 PM
Look up Sleep() on MSDN.

He should also have a look at synchronization primitives and other functions like:

"SleepEx(...)"
"SuspendThread(...)"

maybe wait functions will help too like:

"WaitForSingleObject(...)"

and related,...


Regards

Kerem