Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: tim@handel.Princeton.EDU (Tim Hollebeek)
Subject: Re: [Q] Accurately measure exec time of a process?
Date: Sat, 3 Sep 1994 17:45:54 GMT	[thread overview]
Message-ID: <1994Sep3.174554.27974@Princeton.EDU> (raw)
In-Reply-To: 349aat$mer@pirates.cs.swt.edu

In article <349aat$mer@pirates.cs.swt.edu> peng@pirates.cs.swt.edu (Wuxu Peng) writes:
>I have a C program  (about 2,000 lines) implementing an approximate
>algorithm.  The program has two phases.  My question is: how can I
>accurately measure the execution time of each of the two phases? 
>This measurement is important to demonstrate the usefulness of my
>algorithm.
>
>Thanks in advance.
>
find and learn how to use a prof or gprof.  It will give you execution
times for every function in your C program.  In your case you would
just have to make sure your program looks something like:


void main() {
  doTaskOne();
  doTaskTwo();
}

i.e. a subroutine for each phase


  reply	other threads:[~1994-09-03 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-03  7:58 [Q] Accurately measure exec time of a process? Wuxu Peng
1994-09-03 17:45 ` Tim Hollebeek [this message]
1994-09-03 18:21   ` Arghhhhh (Was: Re: [Q] Accurately measure exec time of a process?) Matthias Blume
1994-09-04  0:00 ` [Q] Accurately measure exec time of a process? Dan Pop
1994-09-06 19:03 ` Ajay Shekhar
read-only archive

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