![]() |
DUNE: Uniform Navigational Environment
2022.04.0
|
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) |
static void | setTimeMultiplier (double mul) |
static double | getTimeMultiplier () |
static double | getStartTimeEpoch () |
static double | getStartTimeMono () |
static uint64_t | getSinceEpochNsecRT (void) |
static uint64_t | getNsecRT (void) |
static double | getSinceEpochRT (void) |
static double | getRT (void) |
static double | toSimTime (double timestamp) |
|
inlinestatic |
Get the amount of non-realtime (in seconds) since an unspecified point in the past.
If the system permits, this point does not change after system start-up time.
References getNsec(), and getSinceEpochNsec().
Referenced by DUNE::Math::Random::Generator::arbitrarySeed(), DUNE::Time::Delta::check(), DUNE::Control::BasicRemoteOperation::consume(), DUNE::Tasks::MessageFilter::filter(), DUNE::Network::FragmentedMessage::getAge(), DUNE::Time::Delta::getDelta(), DUNE::Time::Counter< float >::getElapsed(), DUNE::Time::Counter< float >::getRemaining(), Transports::IridiumSBD::TxRequest::hasExpired(), DUNE::Control::BottomTracker::onEstimatedState(), DUNE::Control::BasicRemoteOperation::onResourceInitialization(), Simulators::StreamVelocity::Task::onResourceInitialization(), DUNE::Time::Counter< float >::overflow(), DUNE::Tasks::Periodic::Periodic(), DUNE::Time::Delta::reset(), DUNE::Time::Counter< float >::reset(), DUNE::Control::BottomTracker::reset(), DUNE::Monitors::ServoCurrentMonitor< T >::ServoCurrentMonitor(), DUNE::Network::FragmentedMessage::setFragment(), DUNE::Maneuvers::StationKeep::StationKeep(), Transports::IridiumSBD::TxRequest::TxRequest(), Control::ROV::RemoteOperation::DistanceTracking::update(), DUNE::Monitors::DelayedTrigger< Tc >::updateAndTest(), DUNE::Monitors::ServoCurrentMonitor< T >::updateAndTest(), DUNE::Monitors::ServoPositionMonitor< T >::updateAndTest(), Simulators::StreamVelocity::Task::updateMessage(), DUNE::Maneuvers::StationKeep::updatePathControl(), and DUNE::Concurrency::Condition::wait().
|
inlinestatic |
Get the amount of non-realtime (in milliseconds) since an unspecified point in the past.
If the system permits, this point does not change after system start-up time.
References getNsec().
|
static |
Get the amount of non-realtime (in nanoseconds) since an unspecified point in the past.
If the system permits, this point does not change after system start-up time.
References getNsecRT().
Referenced by DUNE::Tasks::Context::Context(), get(), getMsec(), getUsec(), DUNE::Time::PeriodicDelay::reset(), and DUNE::Time::PeriodicDelay::wait().
|
static |
Get the amount of realtime (in nanoseconds) since an unspecified point in the past.
If the system permits, this point does not change after system start-up time.
References getSinceEpochNsec().
Referenced by getNsec(), getRT(), getStartTimeMono(), and setTimeMultiplier().
|
inlinestatic |
Get the amount of realtime (in seconds) since an unspecified point in the past.
If the system permits, this point does not change after system start-up time.
References getNsecRT(), and toSimTime().
Referenced by DUNE::Concurrency::Condition::wait().
|
inlinestatic |
Get the amount of non-realtime (in seconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).
References getSinceEpochNsec(), getTimeMultiplier(), and setTimeMultiplier().
Referenced by DUNE::Concurrency::SharedMemory::open(), DUNE::Navigation::BasicNavigation::reportToBus(), DUNE::IMC::Message::setTimeStamp(), DUNE::Tasks::Task::spew(), and DUNE::Concurrency::Condition::wait().
|
inlinestatic |
Get the amount of non-realtime (in milliseconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).
References getSinceEpochNsec().
|
static |
Get the amount of non-realtime (in nanoseconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).
References getSinceEpochNsecRT().
Referenced by get(), getNsecRT(), getSinceEpoch(), getSinceEpochMsec(), and getSinceEpochUsec().
|
static |
Get the amount of realtime (in nanoseconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).
Referenced by getSinceEpochNsec(), getSinceEpochRT(), getStartTimeMono(), and setTimeMultiplier().
|
inlinestatic |
Get the amount of realtime (in seconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).
References getSinceEpochNsecRT().
Referenced by DUNE::Concurrency::Condition::wait().
|
inlinestatic |
Get the amount of non-realtime (in microseconds) elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).
References getSinceEpochNsec().
|
inlinestatic |
Return reference time used for epoch clock acceleration.
|
inlinestatic |
Return reference time used for monotonic clock acceleration.
References getNsecRT(), and getSinceEpochNsecRT().
|
static |
Return configured time multipler.
Referenced by getSinceEpoch(), DUNE::Time::PeriodicDelay::set(), DUNE::Concurrency::Condition::wait(), and DUNE::Time::Delay::wait().
|
inlinestatic |
Get the amount of non-realtime (in microseconds) since an unspecified point in the past.
If the system permits, this point does not change after system start-up time.
References getNsec().
|
static |
Set current time in the form of seconds elapsed since the UNIX Epoch (Midnight UTC of January 1, 1970).
value | time in seconds. |
References setTimeMultiplier().
|
static |
Time multiplier for non-realtime simulations.
mul | multiplier (e.g. 4.0 for 4x speed) |
References getNsecRT(), and getSinceEpochNsecRT().
Referenced by getSinceEpoch(), and set().
|
static |
Referenced by getRT().