Dataflow Runtime API  4.0.1.0
Static Public Member Functions | List of all members
imt::base::os::linux::SystemTime Class Reference

Provides functions to read the current system time. More...

#include <Imt.Base.OS.Linux/SystemTime.h>

Static Public Member Functions

static std::chrono::time_point< std::chrono::system_clock > systemNow () noexcept
 Gets the current system time from a system-wide real time wall clock. More...
 
static std::chrono::time_point< std::chrono::steady_clock > steadyNow () noexcept
 Gets the ticks elapsed on a monotonic clock. More...
 

Detailed Description

Provides functions to read the current system time.

Member Function Documentation

◆ steadyNow()

static std::chrono::time_point<std::chrono::steady_clock> imt::base::os::linux::SystemTime::steadyNow ( )
staticnoexcept

Gets the ticks elapsed on a monotonic clock.

The time delivered can be used to measure intervals but cannot be used for representation of a wall clock.

◆ systemNow()

static std::chrono::time_point<std::chrono::system_clock> imt::base::os::linux::SystemTime::systemNow ( )
staticnoexcept

Gets the current system time from a system-wide real time wall clock.

The time returned is not monotonically increasing and may change any time.

Returns
The current system time

The documentation for this class was generated from the following file: