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

Method _time

include/process/metrics/timer.hpp:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 };
109
110 static void _time(Time start, Timer that)
111 {
112 const Time stop = Clock::now();
113
114 double value;
115
116 synchronized (that.data->lock) {
117 that.data->lastValue = T(stop - start).value();
118 value = that.data->lastValue.get();
119 }
120
121 that.push(value);
122 }
123
124 std::shared_ptr<Data> data;
125};

Callers

nothing calls this directly

Calls 4

pushMethod · 0.80
synchronizedFunction · 0.50
valueMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected