OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Timer class is used for measuring elapsed time or time between two points. More...
#include <ossimTimer.h>
Public Types | |
typedef unsigned long long | Timer_t |
Public Member Functions | |
ossimTimer () | |
~ossimTimer () | |
Timer_t | tick () const |
Get the timers tick value. More... | |
void | setStartTick () |
Set the start. More... | |
void | setStartTick (Timer_t t) |
Timer_t | getStartTick () const |
double | time_s () const |
Get elapsed time in seconds. More... | |
double | time_m () const |
Get elapsed time in milliseconds. More... | |
double | time_u () const |
Get elapsed time in micoseconds. More... | |
double | time_n () const |
Get elapsed time in nanoseconds. More... | |
double | delta_s (Timer_t t1, Timer_t t2) const |
Get the time in seconds between timer ticks t1 and t2. More... | |
double | delta_s (Timer_t t1) const |
double | delta_m (Timer_t t1, Timer_t t2) const |
Get the time in milliseconds between timer ticks t1 and t2. More... | |
double | delta_m (Timer_t t1) const |
double | delta_u (Timer_t t1, Timer_t t2) const |
Get the time in microseconds between timer ticks t1 and t2. More... | |
double | delta_u (Timer_t t1) const |
double | delta_n (Timer_t t1, Timer_t t2) const |
Get the time in nanoseconds between timer ticks t1 and t2. More... | |
double | delta_n (Timer_t t1) const |
double | getSecondsPerTick () const |
Get the the number of seconds per tick. More... | |
Static Public Member Functions | |
static ossimTimer * | instance () |
Protected Attributes | |
Timer_t | m_startTick |
double | m_secsPerTick |
Static Protected Attributes | |
static ossimTimer * | m_instance = 0 |
Timer class is used for measuring elapsed time or time between two points.
Definition at line 10 of file ossimTimer.h.
typedef unsigned long long ossimTimer::Timer_t |
Definition at line 16 of file ossimTimer.h.
ossimTimer::ossimTimer | ( | ) |
Definition at line 75 of file ossimTimer.cpp.
References m_secsPerTick, and setStartTick().
Referenced by instance().
|
inline |
Definition at line 19 of file ossimTimer.h.
Get the time in milliseconds between timer ticks t1 and t2.
Definition at line 49 of file ossimTimer.h.
|
inline |
Definition at line 50 of file ossimTimer.h.
Get the time in nanoseconds between timer ticks t1 and t2.
Definition at line 57 of file ossimTimer.h.
|
inline |
Definition at line 58 of file ossimTimer.h.
|
inline |
Definition at line 46 of file ossimTimer.h.
Get the time in microseconds between timer ticks t1 and t2.
Definition at line 53 of file ossimTimer.h.
|
inline |
Definition at line 54 of file ossimTimer.h.
|
inline |
|
inline |
Definition at line 29 of file ossimTimer.h.
|
static |
Definition at line 19 of file ossimTimer.cpp.
References m_instance, and ossimTimer().
Referenced by ossim::CurlHeaderCache::addHeader(), ossimElevationCellDatabase::CellInfo::CellInfo(), ossimBatchTest::execute(), ossimMultiThreadSequencer::getNextTile(), ossimMultiThreadSequencer::nextJob(), ossimBatchTest::processCommands(), ossimMultiThreadSequencer::ossimGetTileJob::run(), ossimMultiThreadSequencer::setTileInCache(), ossim::CurlHeaderCache::touchEntryProtected(), and ossimElevationCellDatabase::CellInfo::updateTimestamp().
|
inline |
Set the start.
Definition at line 27 of file ossimTimer.h.
Referenced by ossimBatchTest::execute(), and ossimTimer().
|
inline |
Definition at line 28 of file ossimTimer.h.
ossimTimer::Timer_t ossimTimer::tick | ( | ) | const |
Get the timers tick value.
Definition at line 95 of file ossimTimer.cpp.
Referenced by ossim::CurlHeaderCache::addHeader(), ossimElevationCellDatabase::CellInfo::CellInfo(), ossim::CurlHeaderCache::touchEntryProtected(), and ossimElevationCellDatabase::CellInfo::updateTimestamp().
|
inline |
Get elapsed time in milliseconds.
Definition at line 36 of file ossimTimer.h.
|
inline |
Get elapsed time in nanoseconds.
Definition at line 42 of file ossimTimer.h.
|
inline |
Get elapsed time in seconds.
Definition at line 33 of file ossimTimer.h.
Referenced by ossimBatchTest::execute(), ossimMultiThreadSequencer::getNextTile(), ossimMultiThreadSequencer::nextJob(), ossimBatchTest::processCommands(), ossimMultiThreadSequencer::ossimGetTileJob::run(), and ossimMultiThreadSequencer::setTileInCache().
|
inline |
Get elapsed time in micoseconds.
Definition at line 39 of file ossimTimer.h.
|
staticprotected |
Definition at line 64 of file ossimTimer.h.
Referenced by instance().
|
protected |
Definition at line 66 of file ossimTimer.h.
Referenced by ossimTimer().
|
protected |
Definition at line 65 of file ossimTimer.h.