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 JAA30451; Mon, 23 Dec 2002 09:52:46 +0100 (MET) 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 JAA30660 for ; Mon, 23 Dec 2002 09:52:45 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from opus.davidb.org (66-27-72-19.san.rr.com [66.27.72.19]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBN8qhH14634 for ; Mon, 23 Dec 2002 09:52:43 +0100 (MET) Received: from davidb by opus.davidb.org with local (Exim 3.31 #1 (Debian)) id 18QOJO-0001mm-00; Mon, 23 Dec 2002 00:51:46 -0800 Date: Mon, 23 Dec 2002 00:51:46 -0800 From: David Brown To: Sven Luther Cc: onlyclimb , Chris Hecker , caml-list@inria.fr Subject: Re: [Caml-list] time function Message-ID: <20021223085146.GA6833@opus.davidb.org> References: <4.3.2.7.2.20021222233716.030c1be0@localhost> <3E073459.1000100@163.com> <20021223081934.GA1549@iliana> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021223081934.GA1549@iliana> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Dec 23, 2002 at 09:19:34AM +0100, Sven Luther wrote: > > - : float = 1040659299.94 > > it seems that gettimeofday() is for centi-second, :-) > It may just be a coincidence that your call to gettimeofday fall on a > full centi-second, and thus the last decimal was not shown. Actually, it's just the default resolution of the float pretty-printer in the top-level. # Printf.printf "%.30f\n" (Unix.gettimeofday ());; 1040633442.482807993888854980468750000000 - : unit = () Will give you many more digits than are actually meaningful. Dave Brown ------------------- 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