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

Method getElapsedTimeInMS

src/include/common/timer.h:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 uint64_t getElapsedTimeInMS() const {
34 auto now = std::chrono::high_resolution_clock::now();
35 auto duration = now - startTime;
36 auto count = std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
37 DASSERT(count >= 0);
38 return count;
39 }
40
41private:
42 std::chrono::time_point<std::chrono::high_resolution_clock> startTime;

Callers 1

Calls 1

countMethod · 0.45

Tested by

no test coverage detected