CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   How count CPU time in VC++ environment (http://www.cfd-online.com/Forums/main/1863-how-count-cpu-time-vc-environment.html)

Aspens February 23, 2000 16:50

How count CPU time in VC++ environment
 
I am making a program in VC++ environment. How to find the calculation time of the program?

Thanks,

Aspens

yangang bao February 23, 2000 17:02

Re: How count CPU time in VC++ environment
 
directly call function

time(time_t &t)

will return the total number of seconds. This function is in <time.h> (time_t is actually a long int). Before and after you do something, call this function will give you the total CPU time.


yangang bao February 23, 2000 17:06

Re: How count CPU time in VC++ environment
 
I am wondering why the characters inside the damned bookname mark never appear. function time() is in "time.h". <<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>



All times are GMT -4. The time now is 19:19.