MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / stop

Method stop

src/include/utils/profiler.hpp:29–40  ·  view source on GitHub ↗

\brief stop the profiler \param elements the number of elements \param overwrite the overwrite flag

Source from the content-addressed store, hash-verified

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(){

Callers

nothing calls this directly

Calls 2

nowFunction · 0.85
duration_usFunction · 0.85

Tested by

no test coverage detected