OpenImageIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ScopedTimer< TIMER > Class Template Reference

#include <timer.h>

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: