Skip to main content

chrono::ClockTime

Types

ClockId#

  • realtime

UniqueString#

using chrono::ClockTime::UniqueString =  var::KeyString 

Type: var::KeyString

Static Functions

from_seconds(u32 seconds)#

inline

static ClockTime chrono::ClockTime::from_seconds (u32 seconds)

Type: ClockTime

Parameters:

  • u32 seconds

from_string(var::StringView value)#

static ClockTime chrono::ClockTime::from_string (var::StringView value)

Type: ClockTime

Parameters:

get_system_resolution(ClockId clock_id=ClockId::realtime)#

static ClockTime chrono::ClockTime::get_system_resolution (ClockId clock_id=ClockId::realtime)

Type: ClockTime

Parameters:

get_system_time(ClockId clock_id=ClockId::realtime)#

static ClockTime chrono::ClockTime::get_system_time (ClockId clock_id=ClockId::realtime)

Type: ClockTime

Parameters:

invalid()#

inline

static ClockTime chrono::ClockTime::invalid ()

Type: ClockTime

Functions

ClockTime()=default#

chrono::ClockTime::ClockTime ()=default

ClockTime(const MicroTime µ_time)#

explicit

chrono::ClockTime::ClockTime (const MicroTime &micro_time)

ClockTime(const struct timespec &nano_time)#

inline explicit

chrono::ClockTime::ClockTime (const struct timespec &nano_time)

get_age() const#

ClockTime chrono::ClockTime::get_age () const

Type: ClockTime

is_valid() const#

inline

bool chrono::ClockTime::is_valid () const

Type: bool

nanoseconds() const#

inline

s32 chrono::ClockTime::nanoseconds () const

Type: s32

operator const struct timespec *() const#

inline

chrono::ClockTime::operator const struct timespec * () const

operator MicroTime() const#

inline

chrono::ClockTime::operator MicroTime () const

operator struct timespec *()#

inline

chrono::ClockTime::operator struct timespec * ()

operator!=(const ClockTime &a) const#

bool chrono::ClockTime::operator!= (const ClockTime &a) const

Type: bool

Parameters:

operator+(const ClockTime &a) const#

inline

ClockTime chrono::ClockTime::operator+ (const ClockTime &a) const

Type: ClockTime

Parameters:

operator+=(const ClockTime &a)#

inline

ClockTime & chrono::ClockTime::operator+= (const ClockTime &a)

Type: ClockTime &

Parameters:

operator-(const ClockTime &a) const#

inline

ClockTime chrono::ClockTime::operator- (const ClockTime &a) const

Type: ClockTime

Parameters:

operator-=(const ClockTime &a)#

inline

ClockTime & chrono::ClockTime::operator-= (const ClockTime &a)

Type: ClockTime &

Parameters:

operator<(const ClockTime &a) const#

bool chrono::ClockTime::operator< (const ClockTime &a) const

Type: bool

Parameters:

operator<=(const ClockTime &a) const#

bool chrono::ClockTime::operator<= (const ClockTime &a) const

Type: bool

Parameters:

operator==(const ClockTime &a) const#

bool chrono::ClockTime::operator== (const ClockTime &a) const

Type: bool

Parameters:

operator>(const ClockTime &a) const#

bool chrono::ClockTime::operator> (const ClockTime &a) const

Type: bool

Parameters:

operator>=(const ClockTime &a) const#

bool chrono::ClockTime::operator>= (const ClockTime &a) const

Type: bool

Parameters:

reset()#

inline

ClockTime & chrono::ClockTime::reset ()

Type: ClockTime &

seconds() const#

inline

s32 chrono::ClockTime::seconds () const

Type: s32

set_nanoseconds(u32 value)#

inline

ClockTime & chrono::ClockTime::set_nanoseconds (u32 value)

Type: ClockTime &

Parameters:

  • u32 value

set_seconds(u32 seconds)#

inline

ClockTime & chrono::ClockTime::set_seconds (u32 seconds)

Type: ClockTime &

Parameters:

  • u32 seconds

timespec()#

inline

struct timespec * chrono::ClockTime::timespec ()

Type: struct timespec *

timespec() const#

inline

const struct timespec * chrono::ClockTime::timespec () const

Type: const struct timespec *

to_string() const#

inline

StringClass chrono::ClockTime::to_string () const

Type: StringClass

to_unique_string() const#

inline

UniqueString chrono::ClockTime::to_unique_string () const

Type: UniqueString