MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / stop

Method stop

src/common/metric.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void TimeMetric::stop() {
21 if (!enabled) {
22 return;
23 }
24 if (!isStarted) {
25 throw Exception("Timer metric has not started.");
26 }
27 timer.stop();
28 accumulatedTime += timer.getDuration();
29 isStarted = false;
30}
31
32double TimeMetric::getElapsedTimeMS() const {
33 return accumulatedTime / 1000;

Callers 4

getNextTupleMethod · 0.45
parseQueryMethod · 0.45
prepareNoLockMethod · 0.45
executeNoLockMethod · 0.45

Calls 1

getDurationMethod · 0.80

Tested by

no test coverage detected