Public Member Functions | Private Attributes
CPTimer Class Reference

#include <CPTimer.h>

List of all members.

Public Member Functions

 CPTimer ()
double elapsed () const
double lastLap () const
void pause ()
void restart ()
void resume ()
void start ()

Private Attributes

double _elapsed
struct tms _start_time
bool paused

Detailed Description

The code is released under GPL v2

Definition at line 29 of file CPTimer.h.


Constructor & Destructor Documentation

CPTimer::CPTimer ( ) [inline]

Definition at line 103 of file CPTimer.h.


Member Function Documentation

double CPTimer::elapsed ( ) const [inline]

Definition at line 143 of file CPTimer.h.

double CPTimer::lastLap ( ) const [inline]

Definition at line 154 of file CPTimer.h.

void CPTimer::pause ( ) [inline]

Definition at line 135 of file CPTimer.h.

void CPTimer::restart ( ) [inline]

Definition at line 118 of file CPTimer.h.

void CPTimer::resume ( ) [inline]

Definition at line 125 of file CPTimer.h.

void CPTimer::start ( ) [inline]

Definition at line 111 of file CPTimer.h.


Member Data Documentation

double CPTimer::_elapsed [private]

Definition at line 166 of file CPTimer.h.

struct tms CPTimer::_start_time [private]

Definition at line 165 of file CPTimer.h.

bool CPTimer::paused [private]

Definition at line 167 of file CPTimer.h.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30