On Aug 28, 2011, at 5:22 PM, John Porubek wrote:

> By the way, I come from a Forth background where I could implement a
> simple delay word by using a simple "do loop" for something quick and
> dirty or use a hardware timer for something more efficient. I know I'm
> not in Kansas anymore, but what's the easiest way to implement a
> simple delay word in Factor?

Use the "sleep" word.

USING: calendar threads ;

2 seconds sleep

-Joe

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to