CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Difference between "ExecutionTime" and "ClockTime"

Register Blogs Community New Posts Updated Threads Search

Like Tree21Likes
  • 1 Post By lakeat
  • 19 Post By Simon Lapointe
  • 1 Post By mathslw

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 24, 2009, 06:44
Default Difference between "ExecutionTime" and "ClockTime"
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Dear all,

A small question, what is the difference between "ExecutionTime" and "ClockTime"?

I can get these lins from icoFoam.C,
Code:
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
someone said:
Quote:
elapsedCPUTime() is the elapsed CPU time.
elapsedClockTime() is the elapsed wall clock time.
  1. Could anyone explain this in detail?
  2. If ClockTime means something, why then that we have to care about ExecutionTime?
  3. Is there any meaning concerning the ratio of ClockTime over ExecutionTime? Latency, or what?
  4. How can I change the writing format of these time, eg. show four decimal places in second.?

Thanks in advance for any reply.
rarnaunot likes this.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

 


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



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