Version française
Home     About     Download     Resources     Contact us    
Browse thread
Simple clock
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lars Nilsson <chamaeleon@g...>
Subject: Re: [Caml-list] Simple clock
On Tue, 14 Dec 2004 17:38:50 +0000, Keith Wansbrough
<Keith.Wansbrough@cl.cam.ac.uk> wrote:
> Thread.delay
> Unix.time
> Unix.localtime

Or Unix.select instead of Thread.delay, for that tried-and-true
solution that will give you sub-second sleep capability.

  ignore(Unix.select [] [] [] 0.5)

Lars Nilsson