MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / duration

Method duration

src/workflow/Timer.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43auto Timer::duration() const {
44 if (m_end == TimePointType{}) {
45 throw std::runtime_error(fmt::format("Timer {} with level={} was not stopped", m_message, m_level));
46 }
47 return std::chrono::duration_cast<DurationType>(m_end - m_start);
48}
49
50std::string Timer::format() const {
51 if (m_end == TimePointType{}) {

Callers 3

TEST_FFunction · 0.45
timeReportMethod · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36