eq::base::Clock Class Reference

A class for time measurements. More...

#include <clock.h>

List of all members.

Public Member Functions

 Clock ()
 Construct a new clock.
 ~Clock ()
 Destroy the clock.
void reset ()
 Reset the base time of the clock to the current time.
void set (const int64_t time)
 Set the current time of the clock.
float getTimef () const
float getResetTimef ()
int64_t getTime64 () const
double getTimed () const
float getMilliSecondsf () const
 Returns the millisecond part of the time elapsed since the last reset.

Detailed Description

A class for time measurements.

Definition at line 40 of file clock.h.


Constructor & Destructor Documentation

eq::base::Clock::Clock (  )  [inline]

Construct a new clock.

Version:
1.0

Definition at line 44 of file clock.h.

References reset().

Here is the call graph for this function:

eq::base::Clock::~Clock (  )  [inline]

Destroy the clock.

Version:
1.0

Definition at line 55 of file clock.h.


Member Function Documentation

void eq::base::Clock::reset (  )  [inline]

Reset the base time of the clock to the current time.

Version:
1.0

Definition at line 61 of file clock.h.

Referenced by Clock(), eq::ROIFinder::findRegions(), eVolve::EVolve::run(), eqPly::EqPly::run(), and set().

Here is the caller graph for this function:

void eq::base::Clock::set ( const int64_t  time  )  [inline]

Set the current time of the clock.

Version:
1.0

Definition at line 73 of file clock.h.

References reset().

Here is the call graph for this function:

float eq::base::Clock::getTimef (  )  const [inline]
Returns:
the elapsed time in milliseconds since the last clock reset.
Version:
1.0

Definition at line 100 of file clock.h.

Referenced by eq::ROIFinder::findRegions(), eqPixelBench::Channel::frameStart(), eVolve::EVolve::run(), and eqPly::EqPly::run().

Here is the caller graph for this function:

float eq::base::Clock::getResetTimef (  )  [inline]
Returns:
the elapsed time in milliseconds since the last clock reset and atomically reset the clock.
Version:
1.0

Definition at line 124 of file clock.h.

int64_t eq::base::Clock::getTime64 (  )  const [inline]
Returns:
the elapsed time in milliseconds since the last clock reset.
Version:
1.0

Definition at line 153 of file clock.h.

Referenced by eq::net::InstanceCache::add(), eq::net::InstanceCache::expire(), eq::server::Server::getTime(), and eq::Config::getTime().

Here is the caller graph for this function:

double eq::base::Clock::getTimed (  )  const [inline]
Returns:
the elapsed time in milliseconds since the last clock reset.
Version:
1.0

Definition at line 177 of file clock.h.

Referenced by getMilliSecondsf().

Here is the caller graph for this function:

float eq::base::Clock::getMilliSecondsf (  )  const [inline]

Returns the millisecond part of the time elapsed since the last reset.

Obviously the returned time overflows once per second.

Returns:
the millisecond part of the time elapsed.
Version:
1.0

Definition at line 205 of file clock.h.

References getTimed().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Sat Feb 6 13:07:54 2010 for Equalizer 0.9.1 by  doxygen 1.6.1