From: David Brown <caml-list@davidb.org>
To: Sven Luther <luther@dpt-info.u-strasbg.fr>
Cc: onlyclimb <onlyclimb@163.com>, Chris Hecker <checker@d6.com>,
caml-list@inria.fr
Subject: Re: [Caml-list] time function
Date: Mon, 23 Dec 2002 00:51:46 -0800 [thread overview]
Message-ID: <20021223085146.GA6833@opus.davidb.org> (raw)
In-Reply-To: <20021223081934.GA1549@iliana>
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
next prev parent reply other threads:[~2002-12-23 8:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-23 15:18 onlyclimb
2002-12-23 7:38 ` Chris Hecker
2002-12-23 16:05 ` onlyclimb
2002-12-23 8:19 ` Sven Luther
2002-12-23 8:51 ` David Brown [this message]
2002-12-23 17:13 ` onlyclimb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021223085146.GA6833@opus.davidb.org \
--to=caml-list@davidb.org \
--cc=caml-list@inria.fr \
--cc=checker@d6.com \
--cc=luther@dpt-info.u-strasbg.fr \
--cc=onlyclimb@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox