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

Method stop

src/openms/source/SYSTEM/StopWatch.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void StopWatch::stop()
52 {
53 if (!is_running_)
54 {
55 throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "StopWatch cannot be stopped if not running!");
56 }
57
58 TimeDiff_ now = snapShot_();
59 auto diff = now - last_start_;
60 accumulated_times_ += diff;
61
62 is_running_ = false;
63 }
64
65 void StopWatch::resume()
66 {

Callers 15

mainFunction · 0.80
mainFunction · 0.80
main_Method · 0.80
main_Method · 0.80
main_Method · 0.80
main_Method · 0.80
applyFunctorOnCCsMethod · 0.80
applyFunctorOnCCsSTMethod · 0.80
run_Method · 0.80
computeMethod · 0.80
computeSliceOld_Method · 0.80
endProgressMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected