Classes | Public Member Functions

Stopwatch Class Reference

#include <Stopwatch.h>

List of all members.

Classes

struct  Time

Public Member Functions

 Stopwatch ()
 Construct a stopwatch class.
void start ()
 Start the stopwatch.
void stop ()
 Stop the stopwatch.
void reset ()
 Return the stopwatch to its original state.
Time getTime ()
 Get the Time struct containing times elapsed in seconds.

Detailed Description

This is a high fidelity stopwatch class that tries to choose the most accurate timer for your system.


Member Function Documentation

Stopwatch::Time Stopwatch::getTime (  )

Get the Time struct containing times elapsed in seconds.

Returns:
The times in seconds. The Time struct contains wall clock, user, and system time.

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