Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Timer Class Reference

#include <timer.h>

Public Member Functions

 Timer ()
 
 ~Timer ()
 
void start ()
 
void stop ()
 
void reset ()
 
void timestamp ()
 
double elapsed_msec () const
 
unsigned long get_counter () const
 

Private Attributes

bool is_started
 
double m_start
 
double m_elapsed
 
unsigned long m_counter
 

Detailed Description

Definition at line 32 of file timer.h.

Constructor & Destructor Documentation

Timer::Timer ( )
inline

Definition at line 34 of file timer.h.

Timer::~Timer ( )
inline

Definition at line 35 of file timer.h.

Member Function Documentation

double Timer::elapsed_msec ( ) const

Definition at line 98 of file timer.cpp.

unsigned long Timer::get_counter ( ) const

Definition at line 105 of file timer.cpp.

void Timer::reset ( )

Definition at line 88 of file timer.cpp.

void Timer::start ( )

Definition at line 35 of file timer.cpp.

void Timer::stop ( )

Definition at line 60 of file timer.cpp.

void Timer::timestamp ( )

Definition at line 17 of file timer.cpp.

Member Data Documentation

bool Timer::is_started
private

Definition at line 47 of file timer.h.

unsigned long Timer::m_counter
private

Definition at line 51 of file timer.h.

double Timer::m_elapsed
private

Definition at line 50 of file timer.h.

double Timer::m_start
private

Definition at line 48 of file timer.h.


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