Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Timer Class Reference
[Useful math tools]

The Timer class is used to precisely profile the running time of algorithms. More...

#include <quantum.h>

List of all members.

Public Member Functions

 Timer (clockid_t ID=CLOCK_PROCESS_CPUTIME_ID)
 Create a new timer, but don't start it.
void reset ()
 Reset the timer as if it had just been created.
void start ()
 Start timing. Time is added to the elapsed time (i.e., this does not reset elapsed time to zero).
void stop ()
 Stop timing. Elapsed time is calculated and held.
double elapsed ()
 Return the total time elapsed between start() and stop() commands since the last reset().
double average ()
 Return the average elapsed time for all of the start() - stop() cycles since the last reset().
double resolution ()
 Return the smallest timestep that this timer can resolve.


Detailed Description

The Timer class is used to precisely profile the running time of algorithms.


The documentation for this class was generated from the following files:
Generated on Wed Jun 14 22:25:29 2006 for linalg by  doxygen 1.4.4