25 #ifndef WREALTIMETIMER_H
26 #define WREALTIMETIMER_H
28 #include <boost/shared_ptr.hpp>
45 typedef boost::shared_ptr< WRealtimeTimer >
SPtr;
50 typedef boost::shared_ptr< const WRealtimeTimer >
ConstSPtr;
81 #endif // WREALTIMETIMER_H
boost::shared_ptr< WRealtimeTimer > SPtr
Convenience typedef for a shared_ptr.
virtual double elapsed() const
Returns the elapsed time since the last reset in seconds with milliseconds precision.
boost::shared_ptr< const WRealtimeTimer > ConstSPtr
Convenience typedef for a const shared_ptr.
WRealtimeTimer()
Constructs a realtime animation timer.
virtual ~WRealtimeTimer()
Destructor.
osg::Timer m_timer
The osg timer is used here.
virtual void reset()
Resets the start-tick.