Examples: To Sleep, or Not to Sleep?

 

New article To Sleep, or Not to Sleep? has been published:

An alternative use of the Sleep() function in the realization of pauses between EA's actions is proposed. The approach under consideration allows a smart use of machine time.

Author: Sergey Gridnev

 

Nice little library...

Time Loop without Sleep() gives 100% CPU while processing the waiting time

Sleep() suspends program execution (CPU performs other tasks) until the Sleep() timer is expired.

 

Very useful! Thank You! Thank You!

 
Awesome stuff, thanks.

Best Forex Robot


Forex Robot
 
phy:

Nice little library...

Time Loop without Sleep() gives 100% CPU while processing the waiting time

Sleep() suspends program execution (CPU performs other tasks) until the Sleep() timer is expired.


Yes indeed, so far the best way I've seen to crash you platform! Think before you write... :)