Public Member Functions | Private Member Functions | Private Attributes
Clasp::Timer< TimeType > Class Template Reference

#include <timer.h>

List of all members.

Public Member Functions

double elapsed () const
 elapsed time (in seconds) for last start-stop cycle
void lap ()
 same as stop(), start();
void reset ()
void start ()
void stop ()
 Timer ()
double total () const
 total elapsed time for all start-stop cycles

Private Member Functions

void split (double t)

Private Attributes

double split_
double start_
double total_

Detailed Description

template<class TimeType>
class Clasp::Timer< TimeType >

Definition at line 43 of file timer.h.


Constructor & Destructor Documentation

template<class TimeType >
Clasp::Timer< TimeType >::Timer ( ) [inline]

Definition at line 45 of file timer.h.


Member Function Documentation

template<class TimeType >
double Clasp::Timer< TimeType >::elapsed ( ) const [inline]

elapsed time (in seconds) for last start-stop cycle

Definition at line 53 of file timer.h.

template<class TimeType >
void Clasp::Timer< TimeType >::lap ( ) [inline]

same as stop(), start();

Definition at line 51 of file timer.h.

template<class TimeType >
void Clasp::Timer< TimeType >::reset ( ) [inline]

Definition at line 49 of file timer.h.

template<class TimeType >
void Clasp::Timer< TimeType >::split ( double  t) [inline, private]

Definition at line 57 of file timer.h.

template<class TimeType >
void Clasp::Timer< TimeType >::start ( ) [inline]

Definition at line 47 of file timer.h.

template<class TimeType >
void Clasp::Timer< TimeType >::stop ( ) [inline]

Definition at line 48 of file timer.h.

template<class TimeType >
double Clasp::Timer< TimeType >::total ( ) const [inline]

total elapsed time for all start-stop cycles

Definition at line 55 of file timer.h.


Member Data Documentation

template<class TimeType >
double Clasp::Timer< TimeType >::split_ [private]

Definition at line 59 of file timer.h.

template<class TimeType >
double Clasp::Timer< TimeType >::start_ [private]

Definition at line 58 of file timer.h.

template<class TimeType >
double Clasp::Timer< TimeType >::total_ [private]

Definition at line 60 of file timer.h.


The documentation for this class was generated from the following file:


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41