From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,259e99d494c8e68b X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1014db,259e99d494c8e68b X-Google-Attributes: gid1014db,public X-Google-Thread: fee84,259e99d494c8e68b X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-03 17:31:20 PST Newsgroups: comp.unix.osf.osf1,comp.lang.c,comp.unix.questions Path: bga.com!news.sprintlink.net!uunet!EU.net!CERN.ch!news From: danpop@cernapo.cern.ch (Dan Pop) Subject: Re: [Q] Accurately measure exec time of a process? Message-ID: Sender: news@news.cern.ch (USENET News System) Organization: CERN European Lab for Particle Physics References: <349aat$mer@pirates.cs.swt.edu> Date: Sun, 4 Sep 1994 00:00:26 GMT Xref: bga.com comp.unix.osf.osf1:3365 comp.lang.c:23167 comp.unix.questions:12795 In <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. > man 3 clock Dan -- Dan Pop CERN, CN Division Email: danpop@cernapo.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland