MeVisLabToolboxReference
MLTimer Class Reference

#include <mlTimer.h>

List of all members.

Public Member Functions

 MLTimer ()
 ~MLTimer ()
void start ()
void stop ()
void start (MLTimer &otherToPause)
 The other timer is paused and this timer started.
void stop (MLTimer &otherToResume)
 The other timer is resumed and this timer stopped.
long double elapsed () const
 Returns the elapsed time in seconds between start() and stop() calls.
long double consumed () const
 Returns the elapsed time minus the time between pause() and resume() calls in seconds.
unsigned int startCount () const

Friends

class MLTimeProfile
class MLCallGraphNode

Detailed Description

Definition at line 22 of file mlTimer.h.


Constructor & Destructor Documentation

MLTimer::MLTimer ( )
MLTimer::~MLTimer ( )

Member Function Documentation

long double MLTimer::consumed ( ) const [inline]

Returns the elapsed time minus the time between pause() and resume() calls in seconds.

This represents the 'self time'.

Definition at line 44 of file mlTimer.h.

long double MLTimer::elapsed ( ) const [inline]

Returns the elapsed time in seconds between start() and stop() calls.

The time between pause() and resume() calls is included. elapsed() minus consumed() represents the 'time in children'.

Definition at line 40 of file mlTimer.h.

void MLTimer::start ( ) [inline]

Definition at line 61 of file mlTimer.h.

References ML_PRINT_ERROR.

void MLTimer::start ( MLTimer otherToPause) [inline]

The other timer is paused and this timer started.

Definition at line 111 of file mlTimer.h.

References ML_PRINT_ERROR.

unsigned int MLTimer::startCount ( ) const [inline]

Definition at line 45 of file mlTimer.h.

void MLTimer::stop ( ) [inline]

Definition at line 76 of file mlTimer.h.

References ML_PRINT_ERROR.

void MLTimer::stop ( MLTimer otherToResume) [inline]

The other timer is resumed and this timer stopped.

Definition at line 87 of file mlTimer.h.

References ML_PRINT_ERROR.


Friends And Related Function Documentation

friend class MLCallGraphNode [friend]

Definition at line 57 of file mlTimer.h.

friend class MLTimeProfile [friend]

Definition at line 56 of file mlTimer.h.


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