Savarese Software Research
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

sava::time::StopWatch Class Reference

#include <StopWatch.h>

List of all members.


Detailed Description

This is a convenience class at the moment, rather than a properly designed timer class.

It should be properly generalized and genericized later as well as be made platform-independent.

Author:
Daniel F. Savarese

Definition at line 44 of file StopWatch.h.

Public Member Functions

 StopWatch ()
 Constructs a new StopWatch, initializing start and stop times to zero.
void start ()
 Sets the start time to the current time.
void stop ()
 Sets the stop time to the current time.
double elapsed ()
 Returns the difference between the start and stop times in seconds.


Constructor & Destructor Documentation

sava::time::StopWatch::StopWatch  )  [inline]
 

Constructs a new StopWatch, initializing start and stop times to zero.

Definition at line 52 of file StopWatch.h.


Member Function Documentation

double sava::time::StopWatch::elapsed  )  [inline]
 

Returns the difference between the start and stop times in seconds.

Returns:
The elapsed time in seconds.

Definition at line 83 of file StopWatch.h.

void sava::time::StopWatch::start  )  [inline]
 

Sets the start time to the current time.

Definition at line 57 of file StopWatch.h.

void sava::time::StopWatch::stop  )  [inline]
 

Sets the stop time to the current time.

Definition at line 69 of file StopWatch.h.


The documentation for this class was generated from the following file:
Savarese Software Research
Copyright © 2003-2005 Savarese Software Research and Daniel F. Savarese. All rights reserved.