CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How count CPU time in VC++ environment

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2000, 15:50
Default How count CPU time in VC++ environment
  #1
Aspens
Guest
 
Posts: n/a
I am making a program in VC++ environment. How to find the calculation time of the program?

Thanks,

Aspens
  Reply With Quote

Old   February 23, 2000, 16:02
Default Re: How count CPU time in VC++ environment
  #2
yangang bao
Guest
 
Posts: n/a
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.

  Reply With Quote

Old   February 23, 2000, 16:06
Default Re: How count CPU time in VC++ environment
  #3
yangang bao
Guest
 
Posts: n/a
I am wondering why the characters inside the damned bookname mark never appear. function time() is in "time.h". <<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09
CPU states kris Siemens 0 January 19, 2006 22:51
Adjoint CPU time Peter Main CFD Forum 0 April 18, 2003 14:21
The method of Checking the CPU time JunYoung Park Main CFD Forum 2 April 19, 1999 15:34
On the reduction of cpu time lee Main CFD Forum 4 March 7, 1999 22:02


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