MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / Get

Method Get

CobaltFusion/Timer.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32double Timer::Get()
33{
34 auto ticks = GetTicks();
35 std::unique_lock<std::mutex> lock(m_mutex);
36 if (!m_init)
37 {
38 m_offset = ticks;
39 m_init = true;
40 }
41 return (ticks - m_offset)*m_timerUnit;
42}
43
44long long Timer::GetTicks() const
45{

Callers 5

AddMethod · 0.45
AddInternalMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
CreateTestFileFunction · 0.45
AppendToTestFileFunction · 0.45

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.36
CreateTestFileFunction · 0.36
AppendToTestFileFunction · 0.36