From: Julien Michel <julien.michel@etu.univ-orleans.fr>
To: Jean-Christophe Filliatre <filliatr@lri.fr>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Unix module troubles & Time functions
Date: Tue, 18 Jul 2006 15:27:58 +0200 [thread overview]
Message-ID: <20060718152758.crpucakwxhs80sk4@webmailetu.univ-orleans.fr> (raw)
In-Reply-To: <17596.52526.904011.898429@pc9-152.lri.fr>
Quoting Jean-Christophe Filliatre <filliatr@lri.fr>:
> To do such a measurement, I'm using the Unix.times function, as
> follows:
>
> ======================================================================
> open Unix
>
> let utime f x =
> let u = (times()).tms_utime in
> let y = f x in
> let ut = (times()).tms_utime -. u in
> (y,ut)
>
> let print_utime f x =
> let (y,ut) = utime f x in
> Printf.printf "user time: %2.2f\n" ut;
> y
> ======================================================================
>
Thanks for this piece of advice.
Yet, I work on standalone bytcode files, executed with "ocamlrun" on the target.
So I can not use Unix functions just writing "open Unix" and calling some of the
functions it provides us.
The problem remains the same: for the moment I am still not able to use the Unix
module.
Any idea to fix that point?
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
next prev parent reply other threads:[~2006-07-18 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-18 10:10 Julien Michel
2006-07-18 11:59 ` [Caml-list] " Jean-Christophe Filliatre
2006-07-18 13:27 ` Julien Michel [this message]
2006-07-18 15:33 ` William D. Neumann
2006-07-19 10:03 Julien Michel
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=20060718152758.crpucakwxhs80sk4@webmailetu.univ-orleans.fr \
--to=julien.michel@etu.univ-orleans.fr \
--cc=caml-list@yquem.inria.fr \
--cc=filliatr@lri.fr \
/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