From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA03866; Thu, 22 Jul 2004 10:40:55 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA02772 for ; Thu, 22 Jul 2004 10:40:54 +0200 (MET DST) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i6M8erSH018909 for ; Thu, 22 Jul 2004 10:40:53 +0200 Received: from localhost (akasha.ijm.jussieu.fr [134.157.173.57]) by shiva.jussieu.fr (8.12.11/jtpda-5.4) with ESMTP id i6M8eovL007930 ; Thu, 22 Jul 2004 10:40:50 +0200 (CEST) X-Ids: 165 Date: Thu, 22 Jul 2004 10:40:51 +0200 (CEST) Message-Id: <20040722.104051.39170270.andrieu@ijm.jussieu.fr> To: charles.lehalle@miriadtech.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] wait instruction From: Olivier Andrieu In-Reply-To: References: <200407211552.RAA04351@pauillac.inria.fr> X-Mailer: Mew version 4.0.64 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 40FF7D95.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at shiva.jussieu.fr with ID 40FF7D92.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Antivirus: scanned by sophie at shiva.jussieu.fr X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 andrieu:01 andrieu:01 lehalle:01 2004:99 milliseconds:01 olivier:02 olivier:02 float:02 unix:02 let:04 let:04 jul:06 jussieu:07 1000.:92 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk "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