MCPcopy Create free account
hub / github.com/3rdparty/libprocess / stop

Method stop

include/process/metrics/timer.hpp:69–88  ·  view source on GitHub ↗

Stop the Timer.

Source from the content-addressed store, hash-verified

67
68 // Stop the Timer.
69 T stop()
70 {
71 const Time stop = Clock::now();
72
73 T t(0);
74
75 double value = 0.0;
76
77 synchronized (data->lock) {
78 t = T(stop - data->start);
79
80 data->lastValue = t.value();
81
82 value = data->lastValue.get();
83 }
84
85 push(value);
86
87 return t;
88 }
89
90 // Time an asynchronous event.
91 template <typename U>

Callers

nothing calls this directly

Calls 3

synchronizedFunction · 0.50
valueMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected