TBCI Numerical high perf. C++ Library  2.8.0
Public Member Functions | List of all members
stopwatch Class Reference

#include <stopwatch.h>

Inheritance diagram for stopwatch:
Inheritance graph
[legend]
Collaboration diagram for stopwatch:
Collaboration graph
[legend]

Public Member Functions

 stopwatch ()
 
- Public Member Functions inherited from stopw_base
 stopw_base (const double tick, const double over=-1.0)
 c'tor More...
 
virtual ~stopw_base ()
 d'tor More...
 
double reset ()
 Resets the stopwatch. More...
 
void start ()
 Starts the stopwatch. More...
 
double stop ()
 Stops the stopwatch and returns total time (since last reset) More...
 
double stop_d ()
 Stops the stopwatch and returns time since last start / read. More...
 
double read ()
 Returns the total time without stopping the stopwatch (but resets the differential timer) More...
 
double read_d ()
 Returns the time since last read/start without stopping the stopwatch (but resets the differential timer) More...
 

Additional Inherited Members

- Protected Member Functions inherited from stopw_base
virtual double seconds () const
 Return the current time, to be overriden in derived classes. More...
 
double adv_stopwatch ()
 Advance the stopwatch, return diff, handle single overflows. More...
 
- Protected Attributes inherited from stopw_base
double last_time
 The last time we read/started/stopped the clock. More...
 
double total
 The total elapsed time since construction or reset. More...
 
const double secs_per_tick
 Used in seconds() to convert internal time to s. More...
 
const double overflow_secs
 If we overflow once, we miss this many seconds; We assume that internally long ints are used, i.e. More...
 
int running
 The status. More...
 

Detailed Description

Stopwatch class using clock() to measure CPU time.

Definition at line 193 of file stopwatch.h.

Constructor & Destructor Documentation

stopwatch::stopwatch ( )
inline

Definition at line 196 of file stopwatch.h.


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