|
[Sponsors] |
August 2, 2006, 00:21 |
time
|
#1 |
Guest
Posts: n/a
|
dear all, can any one help me how to write code in visual c++ for calculating total time for simulation..i mean what is total time taken for getting results... plz tell what are the commnds available .. thanks in advance
|
|
August 2, 2006, 02:57 |
Re: time
|
#2 |
Guest
Posts: n/a
|
#include<time.h>
int main(void) { time_t start,end; time(&start); ... ... time(&end); cout<<difftime(end,start); return 0; } The difftime prints the time of run in seconds. |
|
August 2, 2006, 02:58 |
Re: time update
|
#3 |
Guest
Posts: n/a
|
cout<<difftime(end,start) prints time of run in seconds
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time step size and max iterations per time step | pUl| | FLUENT | 31 | October 23, 2020 23:50 |
Multiple floating objects | CKH | OpenFOAM Running, Solving & CFD | 14 | February 20, 2019 10:08 |
Time step in transient simulation | shib | FLUENT | 0 | June 17, 2010 14:07 |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |
Computational time | sunnysun | OpenFOAM Running, Solving & CFD | 5 | March 16, 2009 04:32 |