Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::Stopwatch Class Reference

#include <time.h>

List of all members.

Public Methods

 Stopwatch ()
void reset ()
void start ()
void stop ()
double total () const

Public Attributes

double accumulator
double timestamp


Detailed Description

Like a stopwatch, this class accumulates time as long as it is "running", and it can be paused. It starts running the moment it is created. In addition to stopping and starting, it can also clear its accumulated time and start from zero again.


Constructor & Destructor Documentation

fl::Stopwatch::Stopwatch   [inline]
 


Member Function Documentation

void fl::Stopwatch::reset   [inline]
 

Clears accumulated time and starts running.

void fl::Stopwatch::start   [inline]
 

Restarts the accumulation of time. If this stopwatch is already running, then this method throws away all time since that last start, but retains any time accumulated before that start.

void fl::Stopwatch::stop   [inline]
 

Updates total time and then effectively calls start()

double fl::Stopwatch::total   const [inline]
 


Member Data Documentation

double fl::Stopwatch::accumulator
 

double fl::Stopwatch::timestamp
 


The documentation for this class was generated from the following file:
Generated on Thu Dec 9 17:13:27 2004 for fl by doxygen1.2.18