Version française
Home     About     Download     Resources     Contact us    
Browse thread
Waiting for float time
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Thomas Fischbacher <tf@f...>
Subject: Re: [Caml-list] Waiting for float time
sayan@crans.org wrote:

> I am looking for a floating point version of the function Unix.sleep in
> order to suspend execution of a program for 0.7s


let sleep_float n =
   let _ = Unix.select [] [] [] n in ()
;;