MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / pause

Method pause

src/apputils/measure.h:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void pause()
53 {
54 std::chrono::high_resolution_clock::time_point end
55 = std::chrono::high_resolution_clock::now();
56
57 if(m_started)
58 {
59 const std::chrono::duration<float, std::milli> duration = end - m_start;
60
61 m_duration += duration;
62 }
63 else
64 {
65 throw std::runtime_error("Measure already stopped.");
66 }
67
68 m_started = false;
69 }
70
71 void print() const noexcept
72 {

Callers 2

bootstrap.min.jsFile · 0.45
iFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected