Topic: Time function in C++


Author: cshah@saul.cis.upenn.edu (Chetankumar Shah)
Date: 8 May 93 17:58:53 GMT
Raw View
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