From 1275786998441272727
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,243d70401d911b2c,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1993-05-08 12:19:35 PST
Path: gmd.de!ira.uka.de!howland.reston.ans.net!newsserver.jvnc.net!netnews.upenn.edu!saul.cis.upenn.edu
From: cshah@saul.cis.upenn.edu (Chetankumar Shah)
Newsgroups: comp.std.c++
Subject: Time function in C++
Message-ID: <125914@netnews.upenn.edu>
Date: 8 May 93 17:58:53 GMT
Sender: news@netnews.upenn.edu
Organization: University of Pennsylvania
Lines: 16
Nntp-Posting-Host: saul.cis.upenn.edu

hi,
  I am writing code in C++ and need to find out how much time it takes for a
particular function within the main function to execute. That for example,
 main {


function1()

}
I want to know when I ran the program how long on the computer it took to execute function1(), I am working in a UNIX environment and working on SUN workstations. I appreciate it someone who have classes defined for time and a time function could mail it to me or help me.

thanyou,

faisal mian
ps: e-mail          mian@pender.ee.upenn.edu



