MCPcopy Create free account
hub / github.com/ProjectPhysX/FluidX3D / time

Method time

src/info.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 this->runtime_total = clock.stop();
21}
22double Info::time() const { // returns either elapsed time or remaining time
23 if(lbm==nullptr) return 0.0;
24 return steps==max_ulong ? runtime_total : ((double)steps/(double)max(lbm->get_t()-steps_last, 1ull)-1.0)*(runtime_total-runtime_total_last); // time estimation on average so far
25 //return steps==max_ulong ? runtime_lbm : ((double)steps-(double)(lbm->get_t()-steps_last))*runtime_lbm_timestep_smooth; // instantaneous time estimation
26}
27void Info::print_logo() const {
28 const int a=color_light_blue, b=color_orange, c=color_pink;
29 print(".-----------------------------------------------------------------------------.\n");

Callers 1

main_labelFunction · 0.80

Calls 2

maxFunction · 0.85
get_tMethod · 0.45

Tested by

no test coverage detected