chrono::ClockTime
Types
#
ClockId- realtime
#
UniqueStringusing 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:
- var::StringView
value
#
get_system_resolution(ClockId clock_id=ClockId::realtime)static ClockTime chrono::ClockTime::get_system_resolution (ClockId clock_id=ClockId::realtime)
Type: ClockTime
Parameters:
- ClockId
clock_id
#
get_system_time(ClockId clock_id=ClockId::realtime)static ClockTime chrono::ClockTime::get_system_time (ClockId clock_id=ClockId::realtime)
Type: ClockTime
Parameters:
- ClockId
clock_id
#
invalid()inline
static ClockTime chrono::ClockTime::invalid ()
Type: ClockTime
Functions
#
ClockTime()=defaultchrono::ClockTime::ClockTime ()=default
#
ClockTime(const MicroTime µ_time)explicit
chrono::ClockTime::ClockTime (const MicroTime µ_time)
#
ClockTime(const struct timespec &nano_time)inline
explicit
chrono::ClockTime::ClockTime (const struct timespec &nano_time)
#
get_age() constClockTime chrono::ClockTime::get_age () const
Type: ClockTime
#
is_valid() constinline
bool chrono::ClockTime::is_valid () const
Type: bool
#
nanoseconds() constinline
s32 chrono::ClockTime::nanoseconds () const
Type: s32
#
operator const struct timespec *() constinline
chrono::ClockTime::operator const struct timespec * () const
#
operator MicroTime() constinline
chrono::ClockTime::operator MicroTime () const
#
operator struct timespec *()inline
chrono::ClockTime::operator struct timespec * ()
#
operator!=(const ClockTime &a) constbool chrono::ClockTime::operator!= (const ClockTime &a) const
Type: bool
Parameters:
- const ClockTime &
a
#
operator+(const ClockTime &a) constinline
ClockTime chrono::ClockTime::operator+ (const ClockTime &a) const
Type: ClockTime
Parameters:
- const ClockTime &
a
#
operator+=(const ClockTime &a)inline
ClockTime & chrono::ClockTime::operator+= (const ClockTime &a)
Type: ClockTime &
Parameters:
- const ClockTime &
a
#
operator-(const ClockTime &a) constinline
ClockTime chrono::ClockTime::operator- (const ClockTime &a) const
Type: ClockTime
Parameters:
- const ClockTime &
a
#
operator-=(const ClockTime &a)inline
ClockTime & chrono::ClockTime::operator-= (const ClockTime &a)
Type: ClockTime &
Parameters:
- const ClockTime &
a
#
operator<(const ClockTime &a) constbool chrono::ClockTime::operator< (const ClockTime &a) const
Type: bool
Parameters:
- const ClockTime &
a
#
operator<=(const ClockTime &a) constbool chrono::ClockTime::operator<= (const ClockTime &a) const
Type: bool
Parameters:
- const ClockTime &
a
#
operator==(const ClockTime &a) constbool chrono::ClockTime::operator== (const ClockTime &a) const
Type: bool
Parameters:
- const ClockTime &
a
#
operator>(const ClockTime &a) constbool chrono::ClockTime::operator> (const ClockTime &a) const
Type: bool
Parameters:
- const ClockTime &
a
#
operator>=(const ClockTime &a) constbool chrono::ClockTime::operator>= (const ClockTime &a) const
Type: bool
Parameters:
- const ClockTime &
a
#
reset()inline
ClockTime & chrono::ClockTime::reset ()
Type: ClockTime &
#
seconds() constinline
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() constinline
const struct timespec * chrono::ClockTime::timespec () const
Type: const struct timespec *
#
to_string() constinline
StringClass chrono::ClockTime::to_string () const
Type: StringClass
#
to_unique_string() constinline
UniqueString chrono::ClockTime::to_unique_string () const
Type: UniqueString