Positive time duration up to milliseconds resolution. More...
#include <Time.h>
Public Member Functions | |
constexpr size_t | milliseconds () const noexcept |
operator boost::posix_time::time_duration () const | |
time_duration & | operator= (const time_duration &)=default |
constexpr | time_duration () noexcept |
template<typename Rep , typename Period > | |
time_duration (std::chrono::duration< Rep, Period > duration) | |
time_duration (boost::posix_time::time_duration timeout) | |
time_duration (const time_duration &)=default | |
constexpr auto | to_chrono () const |
boost::posix_time::time_duration | to_posix_time () const |
Static Public Member Functions | |
static time_duration | milliseconds (size_t timeout) |
static time_duration | seconds (size_t timeout) |
Private Attributes | |
size_t | _milliseconds |
Positive time duration up to milliseconds resolution.
Automatically casts between std::chrono::duration and boost::posix_time::time_duration.
|
inlinenoexcept |
Definition at line 30 of file Time.h.
Referenced by time_duration().
|
inline |
Definition at line 33 of file Time.h.
References DEBUG_ASSERT.
|
inline |
Definition at line 40 of file Time.h.
References operator=(), and time_duration().
|
default |
|
inlinestatic |
Definition at line 26 of file Time.h.
Referenced by carla::client::World::ApplySettings(), carla::client::detail::Simulator::LoadEpisode(), carla::client::detail::Client::SetTimeout(), carla::client::World::Tick(), and carla::client::World::WaitForTick().
|
inlinenoexcept |
Definition at line 58 of file Time.h.
References _milliseconds.
Referenced by carla::client::detail::Client::Pimpl::GetTimeout(), and FCarlaServer::RunSome().
|
inline |
Definition at line 54 of file Time.h.
References to_posix_time().
|
default |
|
inlinestatic |
Definition at line 22 of file Time.h.
Referenced by carla::streaming::detail::tcp::Client::Reconnect(), and carla::multigpu::Secondary::Reconnect().
|
inline |
Definition at line 50 of file Time.h.
References _milliseconds.
Referenced by carla::ThreadPool::RunFor(), carla::client::detail::SynchronizeFrame(), carla::rpc::Server::SyncRunFor(), and carla::RecurrentSharedFuture< carla::client::WorldSnapshot >::WaitFor().
|
inline |
Definition at line 46 of file Time.h.
References _milliseconds.
Referenced by operator boost::posix_time::time_duration().
|
private |
Definition at line 64 of file Time.h.
Referenced by milliseconds(), to_chrono(), and to_posix_time().