ScopedTimer< TIMER > Class Template Reference

#include <timer.h>

List of all members.

Public Member Functions

 ScopedTimer (TIMER &t)
 ~ScopedTimer ()
void start ()
void stop ()
void reset ()

Detailed Description

template<class TIMER = Timer>
class ScopedTimer< TIMER >

Helper class that starts and stops a timer when the ScopedTimer goes in and out of scope.


Constructor & Destructor Documentation

template<class TIMER = Timer>
ScopedTimer< TIMER >::ScopedTimer ( TIMER &  t  )  [inline]

Given a reference to a timer, start it when this constructor occurs.

template<class TIMER = Timer>
ScopedTimer< TIMER >::~ScopedTimer (  )  [inline]

Stop the timer from ticking when this object is destroyed (i.e. it leaves scope).


Member Function Documentation

template<class TIMER = Timer>
void ScopedTimer< TIMER >::reset (  )  [inline]

Explicit reset of the timer.

template<class TIMER = Timer>
void ScopedTimer< TIMER >::start (  )  [inline]

Explicit start of the timer.

template<class TIMER = Timer>
void ScopedTimer< TIMER >::stop (  )  [inline]

Explicit stop of the timer.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Tue Oct 27 06:30:40 2009 for OpenImageIO by  doxygen 1.6.1