From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,259e99d494c8e68b,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1014db,259e99d494c8e68b,start X-Google-Attributes: gid1014db,public X-Google-Thread: fee84,259e99d494c8e68b,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-03 01:01:27 PST Path: bga.com!news.sprintlink.net!uunet!cs.utexas.edu!pirates.cs.swt.edu!pirates.cs.swt.edu!peng From: peng@pirates.cs.swt.edu (Wuxu Peng) Newsgroups: comp.unix.osf.osf1,comp.lang.c,comp.unix.questions Subject: [Q] Accurately measure exec time of a process? Date: 3 Sep 1994 07:58:21 GMT Organization: Computer Science Department, Southwest Texas State University Message-ID: <349aat$mer@pirates.cs.swt.edu> NNTP-Posting-Host: pirates.cs.swt.edu X-Newsreader: TIN [version 1.2 PL2] Xref: bga.com comp.unix.osf.osf1:3355 comp.lang.c:23117 comp.unix.questions:12782 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. -- --wuxu peng (peng@pirates.cs.swt.edu)