acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
number::time Class Reference
Inheritance diagram for number::time:
number::posix_time number::nanosecond

Public Types

enum  enum_unit {
  unit_nanos , unit_micros , unit_millis , unit_seconds ,
  unit_minutes , unit_hours , unit_days
}

Public Member Functions

constexpr time (zero_t)
 time (now_t)
constexpr time (infinite_t)
constexpr time (const class ::time &time)
 time (const ::earth::gregorian_time &time)
 time (const ::file_time &filetime)
template<prototype_integer INTEGER>
constexpr time (INTEGER iSecond)
template<prototype_floating FLOATING>
 time (FLOATING fSeconds)
template<prototype_integer INTEGER1, prototype_integral INTEGRAL2>
constexpr time (INTEGER1 iSecond, INTEGRAL2 iNanosecond)
template<prototype_floating FLOATING, prototype_number NUMBER>
 time (FLOATING fSeconds, NUMBER nanoseconds)
template<prototype_integral INTEGRAL1, prototype_integral INTEGRAL2>
constexpr time (enum_raw, INTEGRAL1 iSecond, INTEGRAL2 iNanosecond)
template<prototype_integral INTEGRAL1>
constexpr time (enum_raw, INTEGRAL1 iSecond)
template<prototype_integral INTEGRAL1, prototype_integral INTEGRAL2>
constexpr time (enum_normalize, INTEGRAL1 iSecond, INTEGRAL2 iNanosecond)
constexpr time (const ::posix_time &posixtime)
constexpr void raw_set (posix_time posixtime, nanosecond nanosecond={ nanosecond_t{}, 0 })
constexpr void set (posix_time posixtime, nanosecond nanosecond)
constexpr void set_null ()
void fset (::f128 dSeconds)
void fset (::f128 dSeconds, ::f64 dNanoseconds)
constexpr void set (::i64 i, enum_unit eunit)
void set (::f128 d, enum_unit eunit)
constexpr bool is_infinite () const
constexpr bool is_null () const
constexpr bool is_set () const
constexpr class ::time & operator= (const class time &time)
constexpr class ::time & operator= (const ::earth::time_span &time)
bool timeout (const class time &time)
constexpr bool timeout (const class time &time, const class time &timeNow)
constexpr void normalize ()
constexpr ::i64 total_nanoseconds () const
bool is_past () const
class::time & Now ()
constexpr class::time & Infinite ()
class time elapsed () const
constexpr class time elapsed (const class time &time) const
bool is_time_out_ok_with_update (const class time &timeOut)
bool has_timed_out_with_update (const class time &timeOut)
time update_elapsed ()
constexpr time update_elapsed (const class time &timeStop)
inline ::f64 period_rate (const class time &timePeriod) const
constexpr ::f64 period_rate (const class time &timePeriod, const class time &time) const
inline ::f64 ramp_up (const class time &timePeriod) const
constexpr ::f64 ramp_up (const class time &timePeriod, const class time &time) const
constexpr class ::time & operator-= (const class time &time)
constexpr class ::time & operator+= (const class time &time)
template<prototype_floating FLOATING>
constexpr class ::time operator/ (FLOATING d) const
template<prototype_floating FLOATING>
constexpr class ::time operator* (FLOATING d) const
template<prototype_integral INTEGRAL>
constexpr class ::time operator/ (INTEGRAL i) const
template<prototype_integral INTEGRAL>
constexpr class ::time operator* (INTEGRAL i) const
template<prototype_floating FLOATING>
constexpr class ::time & operator/= (FLOATING d)
template<prototype_floating FLOATING>
constexpr class ::time & operator*= (FLOATING d)
template<prototype_integral INTEGRAL>
constexpr class ::time & operator/= (INTEGRAL i)
template<prototype_integral INTEGRAL>
constexpr class ::time & operator*= (INTEGRAL i)
constexpr class ::time half () const
constexpr class ::time & operator%= (const class time &time)
constexpr posix_time GetTimeSpan () const
time remaining (const class time &time, const class time &timeNow=now_t{})
constexpr class ::time wait () const
bool on_off (const class time &period) const
constexpr bool on_off (const class time &period, const class time &now) const
constexpr ::i64 integral_day () const
constexpr ::i64 integral_hour () const
constexpr ::i64 integral_minute () const
constexpr ::i64 integral_second () const
constexpr ::i64 integral_millisecond () const
constexpr ::i64 integral_microsecond () const
constexpr ::i64 integral_nanosecond () const
constexpr ::f64 floating_day () const
constexpr ::f64 floating_hour () const
constexpr ::f64 floating_minute () const
constexpr ::f64 floating_second () const
constexpr ::f64 floating_millisecond () const
constexpr ::f64 floating_microsecond () const
constexpr ::f64 floating_nanosecond () const
::i32 millisecond () const
constexpr bool operator== (const class time &time) const
constexpr ::std::strong_ordering operator<=> (const class time &time) const
::pair< ::collection::count, time > count_and_remainder (const class time &time) const
constexpr time operator% (const class time &time) const
constexpr ::f64 operator/ (const class time &time) const
constexpr time operator+ (const class time &time) const
constexpr time operator- (const class time &time) const
constexpr time operator- () const
Public Member Functions inherited from number::posix_time
constexpr posix_time (no_initialize_t)
constexpr posix_time (zero_t)
template<prototype_integral INTEGRAL>
constexpr posix_time (posix_time_t, INTEGRAL iSecond)
constexpr posix_time (const posix_time &)=default
 posix_time (const ::file_time &pfile_time, ::i32 nDST=-1)
 posix_time (const system_time &systemtime, ::i32 nDST=-1)
 posix_time (const ::earth::gregorian_time &gregoriantime)
 posix_time (now_t)
constexpr posix_time operator+ (posix_time posixtime) const
constexpr posix_time operator- (posix_time posixtime) const
constexpr posix_time & operator+= (posix_time posixtime)
constexpr posix_time & operator-= (posix_time posixtime)
constexpr posix_time & operator= (const posix_time &posixtime)
template<prototype_integral INTEGRAL>
constexpr posix_time & operator*= (INTEGRAL i)
template<prototype_integral INTEGRAL>
constexpr posix_time & operator/= (INTEGRAL i)
template<prototype_integral INTEGRAL>
constexpr posix_time & operator%= (INTEGRAL i)
template<prototype_integral INTEGRAL>
constexpr posix_time operator* (INTEGRAL i) const
template<prototype_integral INTEGRAL>
constexpr posix_time operator/ (INTEGRAL i) const
template<prototype_integral INTEGRAL>
constexpr posix_time operator% (INTEGRAL i) const
bool operator== (const ::posix_time &time) const
std::strong_ordering operator<=> (const ::posix_time &time) const
constexpr ::i64 minutes () const
constexpr ::i64 hours () const
constexpr ::i64 days () const
Public Member Functions inherited from number::nanosecond
constexpr nanosecond (no_initialize_t)
template<prototype_integral INTEGRAL>
constexpr nanosecond (nanosecond_t, INTEGRAL iNanosecond)
constexpr nanosecond (const nanosecond &)=default
constexpr nanosecond operator+ (nanosecond nanosecond) const
constexpr nanosecond operator- (nanosecond nanosecond) const
constexpr nanosecond & operator+= (nanosecond nanosecond)
constexpr nanosecond & operator-= (nanosecond nanosecond)
constexpr nanosecond & operator= (const nanosecond &nanosecond)
template<prototype_integral INTEGRAL>
constexpr nanosecond operator* (INTEGRAL i) const

Static Public Member Functions

static constexpr time raw_create (posix_time posixtime, nanosecond nanosecond)
static constexpr time create (posix_time posixtime, nanosecond nanosecond)
static constexpr time create_null ()
static time fcreate (::f128 dSeconds, ::f64 dNanoseconds)
static constexpr class::time infinity ()
static class::time local_offset ()
static class::time now ()
Static Public Member Functions inherited from number::posix_time
static posix_time now ()

Static Public Attributes

static time s_timeFirst

Additional Inherited Members

Public Attributes inherited from number::posix_time
::i64 m_iSecond
Public Attributes inherited from number::nanosecond
::i64 m_iNanosecond

The documentation for this class was generated from the following file:
  • prototype/mathematics/scalar.cpp