Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at ocaml.org.

Browse thread
Sub-second sleep in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@b...>
Subject: Re: "ocaml_beginners"::[] Sub-second sleep in OCaml
On Fri, Jul 25, 2003 at 10:07:43AM -0700, james woodyatt wrote:
> Unix.select [] [] [] 0.5;;

Alternatively, but a bit more "invasive" if your program isn't
thread-based, Thread.delay.

Cheers.

-- 
Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/zack/
" I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant! " -- G.Romney