MCPcopy Create free account
hub / github.com/cinder/Cinder / start

Method start

src/cinder/Timer.cpp:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void Timer::start( double offsetSeconds )
82{
83#if defined( CINDER_COCOA )
84 mStartTime = ::CFAbsoluteTimeGetCurrent() - offsetSeconds;
85#elif defined( CINDER_MSW )
86 ::LARGE_INTEGER rawTime;
87 ::QueryPerformanceCounter( &rawTime );
88 mStartTime = rawTime.QuadPart * mInvNativeFreq - offsetSeconds;
89#elif defined( CINDER_ANDROID ) || defined( CINDER_LINUX )
90 mStartTime = LinuxGetElapsedSeconds();
91#endif
92
93 mIsStopped = false;
94}
95
96double Timer::getSeconds() const
97{

Callers 13

setupCaptureMethod · 0.45
setupCaptureWithModeMethod · 0.45
drawMethod · 0.45
setupMethod · 0.45
keyDownMethod · 0.45
drawMethod · 0.45
setupMethod · 0.45
keyDownMethod · 0.45
mouseDownMethod · 0.45
setupMethod · 0.45
mouseDownMethod · 0.45

Calls 1

LinuxGetElapsedSecondsFunction · 0.85

Tested by

no test coverage detected