| 20 | this->runtime_total = clock.stop(); |
| 21 | } |
| 22 | double 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 | } |
| 27 | void Info::print_logo() const { |
| 28 | const int a=color_light_blue, b=color_orange, c=color_pink; |
| 29 | print(".-----------------------------------------------------------------------------.\n"); |
no test coverage detected