zx::duration

Summary

Constructors and Destructors

duration()
duration(zx_duration_t value)

Public functions

get() const
constexpr zx_duration_t
operator!=(duration other) const
constexpr bool
operator%(int64_t divisor) const
constexpr duration
operator%(duration other) const
constexpr int64_t
operator%=(int64_t divisor)
constexpr duration &
operator*(int64_t multiplier)
constexpr duration
operator*=(int64_t multiplier)
constexpr duration &
operator+(duration other)
constexpr duration
operator+=(duration other)
constexpr duration &
operator-()
constexpr duration
operator-(duration other)
constexpr duration
operator-=(duration other)
constexpr duration &
operator/(int64_t divisor) const
constexpr duration
operator/(duration other) const
constexpr int64_t
operator/=(int64_t divisor)
constexpr duration &
operator<(duration other) const
constexpr bool
operator<=(duration other) const
constexpr bool
operator==(duration other) const
constexpr bool
operator>(duration other) const
constexpr bool
operator>=(duration other) const
constexpr bool
to_hours() const
constexpr int64_t
to_mins() const
constexpr int64_t
to_msecs() const
constexpr int64_t
to_nsecs() const
constexpr int64_t
to_secs() const
constexpr int64_t
to_usecs() const
constexpr int64_t

Public static functions

infinite()
constexpr duration
infinite_past()
constexpr duration

Public functions

duration

constexpr duration()=default

duration

constexpr duration(
  zx_duration_t value
)

get

constexpr zx_duration_t get() const 

operator!=

constexpr bool operator!=(
  duration other
) const 

operator%

constexpr duration operator%(
  int64_t divisor
) const 

operator%

constexpr int64_t operator%(
  duration other
) const 

operator%=

constexpr duration & operator%=(
  int64_t divisor
)

operator*

constexpr duration operator*(
  int64_t multiplier
)

operator*=

constexpr duration & operator*=(
  int64_t multiplier
)

operator+

constexpr duration operator+(
  duration other
)

operator+=

constexpr duration & operator+=(
  duration other
)

operator-

constexpr duration operator-()

operator-

constexpr duration operator-(
  duration other
)

operator-=

constexpr duration & operator-=(
  duration other
)

operator/

constexpr duration operator/(
  int64_t divisor
) const 

operator/

constexpr int64_t operator/(
  duration other
) const 

operator/=

constexpr duration & operator/=(
  int64_t divisor
)

operator<

constexpr bool operator<(
  duration other
) const 

operator<=

constexpr bool operator<=(
  duration other
) const 

operator==

constexpr bool operator==(
  duration other
) const 

operator>

constexpr bool operator>(
  duration other
) const 

operator>=

constexpr bool operator>=(
  duration other
) const 

to_hours

constexpr int64_t to_hours() const 

to_mins

constexpr int64_t to_mins() const 

to_msecs

constexpr int64_t to_msecs() const 

to_nsecs

constexpr int64_t to_nsecs() const 

to_secs

constexpr int64_t to_secs() const 

to_usecs

constexpr int64_t to_usecs() const 

Public static functions

infinite

constexpr duration infinite()

infinite_past

constexpr duration infinite_past()