Re: New "maxstatements" feature suggestion

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ryan W. Johnson wrote:
> 
> You could use euphoria's multitasking to control how much CPU a loop takes. I
> used the tasking
> routines all the time now. smile (Thanks Rob
> for adding that feature! I don't know how much people use tasking, but i sure
> do.)
> 
> Another thing you can do is use nanosleep() to slow down the loop.
> It is in this library: <a
> href="http://www.rapideuphoria.com/idle.e">http://www.rapideuphoria.com/idle.e</a>
> 
> ~Ryan W. Johnson
> 
> Fluid Application Environment
> <a href="http://www.fluidae.com/">http://www.fluidae.com/</a>
> 
> [cool quote here, if i ever think of one...]

You can also use hirestime.e in the archive to bypass the millisecond
resolution issue under Windows. At least when the CPU is Pentium-class.
Merging this with idle.e could provide a good xplat library. Does Linux's
nano_sleep() work right on older CPUs?

CChris
PS: Ryan, would you be interested by a coauthored merger?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu