MCPcopy Create free account
hub / github.com/SFML/SFML / getElapsedTime

Method getElapsedTime

src/SFML/System/Clock.cpp:35–40  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

33{
34////////////////////////////////////////////////////////////
35Time Clock::getElapsedTime() const
36{
37 if (isRunning())
38 return std::chrono::duration_cast<std::chrono::microseconds>(priv::ClockImpl::now() - m_refPoint);
39 return std::chrono::duration_cast<std::chrono::microseconds>(m_stopPoint - m_refPoint);
40}
41
42
43////////////////////////////////////////////////////////////

Callers 13

Clock.test.cppFile · 0.80
displayMethod · 0.80
isConnectedMethod · 0.80
getStringImplMethod · 0.80
queryDnsFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
runMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected