\brief stop the profiler \param elements the number of elements \param overwrite the overwrite flag
| 27 | /// \param elements the number of elements |
| 28 | /// \param overwrite the overwrite flag |
| 29 | time_utils::time_point stop(size_t elements, bool overwrite = false){ |
| 30 | time_utils::time_point end_time = time_utils::now(); |
| 31 | time_utils::time_with_unit duration = time_utils::duration_us(this->start_time, end_time); |
| 32 | this->total_time.first += duration.first; |
| 33 | if (overwrite){ |
| 34 | this->counter = elements; |
| 35 | } |
| 36 | else{ |
| 37 | this->counter += elements; |
| 38 | } |
| 39 | return end_time; |
| 40 | } |
| 41 | |
| 42 | /// \brief reset the profiler |
| 43 | void reset(){ |
nothing calls this directly
no test coverage detected