comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Timing of ADA code
Date: 1998/07/31
Date: 1998-07-31T00:00:00+00:00	[thread overview]
Message-ID: <6pssib$r9c$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 35c1cf02.40761361@news.gatech.edu

In article <35c1cf02.40761361@news.gatech.edu>,
  bf14@prism.gatech.edu (Brian Franklin) wrote:
> On Fri, 31 Jul 1998 13:15:17 GMT, dennison@telepath.com wrote:
>
> >In article <35c12689.217545056@news.gatech.edu>,
> >  bf14@prism.gatech.edu (Brian Franklin) wrote:
> >> I want to measure the execution time of portions of my ADA code. What
> >> code do I need to add the my code to do this?
> >>
> >> I'm using GNAT on a PC.
> >>
> >
> >What OS?
> Windows 95
> >
> >CPU time or wall time?
> CPU
> (What's wall time?)
The actual time elapsed (including time spent doing nothing while another
process or task is executing). iaw: The time elapsed as reported by the clock
on the wall.

Ada gives you a standard way to get "wall" time, but you will have to make OS
calls to get CPU time. That turns your question into:

 "How do I get CPU time for a thread in Windows 95?", which is a better
question for a win32 newsgroup,
and possibly:
 "How do I get my Win95 thread ID in gnat?", which is appropriate here.

T.E.D.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




  reply	other threads:[~1998-07-31  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-31  0:00 Timing of ADA code Brian Franklin
     [not found] ` <6psg15$a56$1@nnrp1.dejanews.com>
1998-07-31  0:00   ` Brian Franklin
1998-07-31  0:00     ` dennison [this message]
1998-07-31  0:00       ` Brian Franklin
1998-08-01  0:00         ` Jerry van Dijk
1998-08-01  0:00           ` Brian Franklin
1998-08-01  0:00             ` Tom Moran
1998-08-03  0:00             ` dennison
  -- strict thread matches above, loose matches on Subject: below --
1998-07-31  0:00 tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox