29 #if defined( CINDER_COCOA )
30 #include <CoreFoundation/CoreFoundation.h>
41 Timer(
bool startOnConstruction );
55 #if defined( CINDER_COCOA )
56 ::CFAbsoluteTime mStartTime, mEndTime;
57 #elif (defined( CINDER_MSW ) || defined( CINDER_WINRT ))
58 double mStartTime, mEndTime, mInvNativeFreq;
Timer()
Constructs a default timer which is initialized as stopped.
Definition: Timer.cpp:33
double getSeconds() const
Returns the elapsed seconds if the timer is running, or the total time between calls to start() and s...
Definition: Timer.cpp:75
void start()
Begins timing.
Definition: Timer.cpp:62
bool isStopped() const
Returns whether the timer is currently running.
Definition: Timer.h:51
void stop()
Ends timing.
Definition: Timer.cpp:90
A high-resolution timer class.
Definition: Timer.h:36