caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: e@flavors.com (Doug Currie, Flavors Technology, Inc.)
To: caml-list@pauillac.inria.fr
Cc: Bruno Petazzoni <bpetazzoni@sancerre.ac-idf.jussieu.fr>
Subject: Re: timer
Date: Fri, 7 Jun 1996 18:23:23 -0400	[thread overview]
Message-ID: <v01540b16adde57bce69c@[204.5.215.14]> (raw)


>[English: there is no means to measure elapsed time in Caml Light under PC or
>Macintosh. Is there the necessary C code primitive already written somewhere ?]

I did this for my Mac port of Caml Light 0.7 (which is not the official
port) and for Mac Moscow ML (which is the official port and is based on my
Mac Caml Light 0.7).

In my Mac Caml Light 0.7 and in Mac Moscow ML I implemented three timers:
- elapsed time
- time spent in GC
- time spent in "the cooperative multitasking experience"
and primitives to create additional timers.

To do this, macros to start and stop the various timers must be inserted in
many places in the runtime code. The Caml Light team decided not to include
my stuff, probably because so many changes were required in the source.

If you would like to see how it's done, get the Mac Moscow ML from
<http://www.dina.kvl.dk/~sestoft/mosml.html>. Look at the file runtime.c
and then look for uses of the macros beg_gc_time(), end_gc_time(),
beg_mf_time(), and end_mf_time(). gettimeofday is also implemented there in
e_gettimeofday.c.

e







             reply	other threads:[~1996-06-10 11:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-07 22:23 Doug Currie, Flavors Technology, Inc. [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-01-03  1:58 timer Anastasia Gornostaeva
1996-06-06 16:14 timer Robbert VanRenesse
1996-06-04  7:09 timer Pierre Weis

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='v01540b16adde57bce69c@[204.5.215.14]' \
    --to=e@flavors.com \
    --cc=bpetazzoni@sancerre.ac-idf.jussieu.fr \
    --cc=caml-list@pauillac.inria.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;
as well as URLs for NNTP newsgroup(s).