Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
mt::Clock Class Reference

Clock used to measure performance of algoritms. Behaves similarly to QTime (QT). More...

#include <clock.h>

List of all members.

Public Member Functions

 Clock ()
int elapsed ()
int msecsTo (const Clock &t) const
int restart ()
void start ()

Static Public Member Functions

static Clock currentTime ()

Protected Member Functions

int elapsedAux (bool restart)

Protected Attributes

timeval tini

Detailed Description

Clock used to measure performance of algoritms. Behaves similarly to QTime (QT).

Definition at line 34 of file clock.h.


Constructor & Destructor Documentation

mt::Clock::Clock ( ) [inline]

Initializes the Clock

Definition at line 38 of file clock.h.


Member Function Documentation

static Clock mt::Clock::currentTime ( ) [inline, static]

Returns the current time as reported by the system clock.

Definition at line 46 of file clock.h.

int mt::Clock::elapsed ( ) [inline]

Returns the number of milliseconds that have elapsed since the last time start() or restart() was called.

Definition at line 73 of file clock.h.

int mt::Clock::elapsedAux ( bool  restart) [inline, protected]

Returns the number of milliseconds that have elapsed since the last time start() or restart() was called. If restart is true, it also sets this time to the current time.

Definition at line 113 of file clock.h.

int mt::Clock::msecsTo ( const Clock t) const [inline]

Definition at line 81 of file clock.h.

int mt::Clock::restart ( ) [inline]

Sets this time to the current time and returns the number of milliseconds that have elapsed since the last time start() or restart() was called.

Definition at line 66 of file clock.h.

void mt::Clock::start ( void  ) [inline]

Sets this time to the current time. This is practical for timing.

Definition at line 54 of file clock.h.


Member Data Documentation

timeval mt::Clock::tini [protected]

Initial time

Definition at line 107 of file clock.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:08