Browse thread
[Caml-list] time function
-
onlyclimb
-
Chris Hecker
-
onlyclimb
-
Sven Luther
- David Brown
- onlyclimb
-
Sven Luther
-
onlyclimb
-
Chris Hecker
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | onlyclimb <onlyclimb@1...> |
| Subject: | Re: [Caml-list] time function |
> > >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