cvedia::rt::RealTimeProvider¶
Inherits from TimeProvider
Public Functions¶
Name | |
---|---|
std::unique_ptr< TimeProvider > | create() |
virtual std::time_t | now() const override |
virtual std::chrono::system_clock::time_point | nowTimePoint() const override |
virtual std::string | nowFormatted(std::string const & format ="%Y-%m-%d %H:%M:%S") const override |
virtual void | sleep(std::chrono::milliseconds duration) const override |
Additional inherited members¶
Public Functions inherited from TimeProvider
Name | |
---|---|
TimeProvider() =default | |
virtual | ~TimeProvider() =default |
TimeProvider(TimeProvider && ) =default | |
TimeProvider(TimeProvider const & ) =delete | |
TimeProvider & | operator=(const TimeProvider & ) =delete |
TimeProvider & | operator=(TimeProvider && ) =delete |
Public Functions Documentation¶
function create¶
static inline std::unique_ptr< TimeProvider > create()
function now¶
inline virtual std::time_t now() const override
Reimplements: cvedia::rt::TimeProvider::now
function nowTimePoint¶
inline virtual std::chrono::system_clock::time_point nowTimePoint() const override
Reimplements: cvedia::rt::TimeProvider::nowTimePoint
function nowFormatted¶
inline virtual std::string nowFormatted(
std::string const & format ="%Y-%m-%d %H:%M:%S"
) const override
Reimplements: cvedia::rt::TimeProvider::nowFormatted
function sleep¶
inline virtual void sleep(
std::chrono::milliseconds duration
) const override
Reimplements: cvedia::rt::TimeProvider::sleep
Updated on 2025-08-24 at 15:42:37 +0000