library of assembled shared sources

http://lass.cocamware.com

lass::util::StopWatch Class Reference

#include <stop_watch.h>

Collaboration diagram for lass::util::StopWatch:

Collaboration graph
[legend]

Public Types

typedef Clock::TTime TTime

Public Member Functions

 StopWatch (Clock &iClock, TTime iInitialTime=0)
void reset (TTime iInitialTime=0)
void start ()
void restart (TTime iInitialTime=0)
const TTime stop ()
const TTime time () const

Private Attributes

TTime timeBuffer_
TTime startTime_
Clockclock_
bool isRunning_

Detailed Description

Definition at line 56 of file stop_watch.h.


Member Typedef Documentation

Definition at line 60 of file stop_watch.h.


Constructor & Destructor Documentation

lass::util::StopWatch::StopWatch ( Clock iClock,
TTime  iInitialTime = 0 
) [inline]

Definition at line 62 of file stop_watch.h.

References reset().


Member Function Documentation

void lass::util::StopWatch::reset ( TTime  iInitialTime = 0  )  [inline]

Definition at line 68 of file stop_watch.h.

References isRunning_, and timeBuffer_.

Referenced by restart(), and StopWatch().

void lass::util::StopWatch::start (  )  [inline]

Definition at line 74 of file stop_watch.h.

References clock_, isRunning_, startTime_, and lass::util::Clock::time().

Referenced by restart().

void lass::util::StopWatch::restart ( TTime  iInitialTime = 0  )  [inline]

Definition at line 80 of file stop_watch.h.

References reset(), and start().

const TTime lass::util::StopWatch::stop (  )  [inline]

Definition at line 86 of file stop_watch.h.

References clock_, isRunning_, startTime_, lass::util::Clock::time(), and timeBuffer_.

const TTime lass::util::StopWatch::time (  )  const [inline]

Definition at line 97 of file stop_watch.h.

References clock_, isRunning_, startTime_, lass::util::Clock::time(), and timeBuffer_.


Field Documentation

Definition at line 105 of file stop_watch.h.

Referenced by reset(), stop(), and time().

Definition at line 106 of file stop_watch.h.

Referenced by start(), stop(), and time().

Definition at line 107 of file stop_watch.h.

Referenced by start(), stop(), and time().

Definition at line 108 of file stop_watch.h.

Referenced by reset(), start(), stop(), and time().


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

Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo