rutz::stopwatch Class Reference

Tracks elapsed wall-clock time. More...

#include <rutz/stopwatch.h>

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

List of all members.

Public Member Functions

 stopwatch ()
 Default constructor.
void restart ()
 Reset the start time to the current time.
rutz::time elapsed (const rutz::time &stop) const
 Get the time elapsed between start and stop times.
rutz::time elapsed () const
 Get the time elapsed between start and now.

Detailed Description

Tracks elapsed wall-clock time.

Definition at line 45 of file stopwatch.h.


Constructor & Destructor Documentation

rutz::stopwatch::stopwatch (  )  [inline]

Default constructor.

Definition at line 49 of file stopwatch.h.

References restart().


Member Function Documentation

rutz::time rutz::stopwatch::elapsed (  )  const [inline]

Get the time elapsed between start and now.

Definition at line 62 of file stopwatch.h.

References rutz::time::wall_clock_now().

rutz::time rutz::stopwatch::elapsed ( const rutz::time stop  )  const [inline]

Get the time elapsed between start and stop times.

Definition at line 56 of file stopwatch.h.

void rutz::stopwatch::restart (  )  [inline]

Reset the start time to the current time.

Definition at line 52 of file stopwatch.h.

References rutz::time::wall_clock_now().

Referenced by stopwatch().


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:31:21 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3