A class for time measurements. More...
#include <clock.h>
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. | |
A class for time measurements.
Definition at line 40 of file clock.h.
| eq::base::Clock::Clock | ( | ) | [inline] |
| eq::base::Clock::~Clock | ( | ) | [inline] |
| void eq::base::Clock::reset | ( | ) | [inline] |
Reset the base time of the clock to the current time.
Definition at line 61 of file clock.h.
Referenced by Clock(), eq::ROIFinder::findRegions(), eVolve::EVolve::run(), eqPly::EqPly::run(), and set().

| void eq::base::Clock::set | ( | const int64_t | time | ) | [inline] |
| float eq::base::Clock::getTimef | ( | ) | const [inline] |
Definition at line 100 of file clock.h.
Referenced by eq::ROIFinder::findRegions(), eqPixelBench::Channel::frameStart(), eVolve::EVolve::run(), and eqPly::EqPly::run().

| float eq::base::Clock::getResetTimef | ( | ) | [inline] |
| int64_t eq::base::Clock::getTime64 | ( | ) | const [inline] |
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().

| double eq::base::Clock::getTimed | ( | ) | const [inline] |
Definition at line 177 of file clock.h.
Referenced by getMilliSecondsf().

| 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.
Definition at line 205 of file clock.h.
References getTimed().

0.9.1 by
1.6.1