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 KAA31201; Mon, 23 Dec 2002 10:13:13 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA31267 for ; Mon, 23 Dec 2002 10:13:12 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from sm203.163.com ([202.108.44.203]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gBN9D7n14423 for ; Mon, 23 Dec 2002 10:13:09 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by sm203.163.com (Postfix) with SMTP id A14EE1C6AAB68; Mon, 23 Dec 2002 17:13:02 +0800 (CST) Received: from 163.com (unknown [159.226.149.121]) by 192.168.1.203 (Coremail) with SMTP id UgQAAJ7TBj4jkf//.1 for ; Mon, 23 Dec 2002 17:13:02 +0800 (CST) Message-ID: <3E07441D.1040500@163.com> Date: Mon, 23 Dec 2002 17:13:01 +0000 From: onlyclimb User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20021005 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sven Luther , caml-list@inria.fr Subject: Re: [Caml-list] time function References: <4.3.2.7.2.20021222233716.030c1be0@localhost> <3E073459.1000100@163.com> <20021223081934.GA1549@iliana> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > >Time used : 0.035280 seconds >Time used : 0 days, 0 hours, 0 minutes, 0 seconds, 35 milliseconds, 279 microseconds > >So i guess it works with milliseconds, but i may be wrong. > >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. > oh. i see. maybe it is because on the top level it only show 12 digit. so i can not see the digits after centisecond. # (let a = gettimeofday() in for i=0 to 10000 do ignore (i=i) done ; gettimeofday() -. a ) ;; - : float = 0.00056004524231 # for i =0 to 10000 do print_float ((gettimeofday()); print_string " " done;; ...... 63452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 1040663452.51 - : unit = () Thanks Merry Christmas climb ------------------- 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