Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
TNT::stopwatch Class Reference

#include <Base/Math/tnt/stopwatch.h>

Public Member Functions

double read ()
 
void reset ()
 
void start ()
 
double stop ()
 
 stopwatch ()
 

Protected Attributes

double last_time
 
int running
 
double total
 

Detailed Description

Definition at line 59 of file stopwatch.h.

Constructor & Destructor Documentation

TNT::stopwatch::stopwatch ( )
inline

Definition at line 66 of file stopwatch.h.

Member Function Documentation

double TNT::stopwatch::read ( )
inline

Definition at line 76 of file stopwatch.h.

References last_time, running, TNT::seconds(), and total.

void TNT::stopwatch::reset ( )
inline

Definition at line 67 of file stopwatch.h.

References last_time, running, and total.

void TNT::stopwatch::start ( )
inline

Definition at line 68 of file stopwatch.h.

References last_time, running, and TNT::seconds().

double TNT::stopwatch::stop ( )
inline

Definition at line 69 of file stopwatch.h.

References last_time, running, TNT::seconds(), and total.

Member Data Documentation

double TNT::stopwatch::last_time
protected

Definition at line 62 of file stopwatch.h.

Referenced by read(), reset(), start(), and stop().

int TNT::stopwatch::running
protected

Definition at line 61 of file stopwatch.h.

Referenced by read(), reset(), start(), and stop().

double TNT::stopwatch::total
protected

Definition at line 63 of file stopwatch.h.

Referenced by read(), reset(), and stop().


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