Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] kprintf with user formatters
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Olivier Andrieu <andrieu@i...>
Subject: Re: [Caml-list] wait instruction
 "lehalle@miriad" [Thu, 22 Jul 2004]:
 > Hi,
 > 
 > I want a function that allow my code to wait for m milliseconds
 > before continuing, and I need a cross-platform function (win and
 > linux) to perfom that. any idea ?

select ?

let msleep ms = 
  let _ = Unix.select [] [] [] (float ms /. 1000.) in ()

-- 
   Olivier

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners