DUNE: Uniform Navigational Environment  2.3.0
DUNE::Time::Clock Class Reference

Detailed Description

System clock routines.

Static Public Member Functions

static uint64_t getNsec (void)
 
static uint64_t getUsec (void)
 
static uint64_t getMsec (void)
 
static double get (void)
 
static uint64_t getSinceEpochNsec (void)
 
static uint64_t getSinceEpochUsec (void)
 
static uint64_t getSinceEpochMsec (void)
 
static double getSinceEpoch (void)
 
static void set (double value)
 

Member Function Documentation

static uint64_t DUNE::Time::Clock::getMsec ( void  )
inlinestatic

Get the amount of time (in milliseconds) since an unspecified point in the past.

If the system permits, this point does not change after system start-up time.

Returns
time in milliseconds.

References getNsec().

uint64_t DUNE::Time::Clock::getNsec ( void  )
static

Get the amount of time (in nanoseconds) since an unspecified point in the past.

If the system permits, this point does not change after system start-up time.

Returns
time in nanoseconds.

References getSinceEpochNsec().

Referenced by DUNE::Tasks::Context::Context(), get(), getMsec(), and getUsec().

static double DUNE::Time::Clock::getSinceEpoch ( void  )
inlinestatic

Get the amount of time (in seconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).

Returns
time in seconds.

References getSinceEpochNsec().

Referenced by DUNE::Navigation::BasicNavigation::reportToBus(), DUNE::IMC::Message::setTimeStamp(), and DUNE::Concurrency::Condition::wait().

static uint64_t DUNE::Time::Clock::getSinceEpochMsec ( void  )
inlinestatic

Get the amount of time (in milliseconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).

Returns
time in milliseconds.

References getSinceEpochNsec().

uint64_t DUNE::Time::Clock::getSinceEpochNsec ( void  )
static

Get the amount of time (in nanoseconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).

Returns
time in nanoseconds.

Referenced by getNsec(), getSinceEpoch(), getSinceEpochMsec(), and getSinceEpochUsec().

static uint64_t DUNE::Time::Clock::getSinceEpochUsec ( void  )
inlinestatic

Get the amount of time (in microseconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).

Returns
time in microseconds.

References getSinceEpochNsec().

static uint64_t DUNE::Time::Clock::getUsec ( void  )
inlinestatic

Get the amount of time (in microseconds) since an unspecified point in the past.

If the system permits, this point does not change after system start-up time.

Returns
time in microseconds.

References getNsec().

void DUNE::Time::Clock::set ( double  value)
static

Set current time in the form of seconds elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).

Parameters
valuetime in seconds.
Collaboration diagram for DUNE::Time::Clock:
Collaboration graph