|
| constexpr | TimeInterval () noexcept |
| |
| constexpr | TimeInterval (time_t s, long ns=0, bool negative=false) noexcept |
| |
| constexpr | TimeInterval (struct timespec const &ts) noexcept |
| |
| TimeInterval & | operator= (TimeInterval const &t) noexcept |
| |
| constexpr | TimeInterval (TimeInterval const &t) noexcept |
| |
| | TimeInterval (float dt) |
| |
| | TimeInterval (double dt) |
| |
| | TimeInterval (long double dt) |
| |
| template<typename T > |
| constexpr | TimeInterval (T dt) noexcept |
| |
| template<typename Rep > |
| | TimeInterval (std::chrono::duration< Rep, std::nano > ns) |
| |
| template<typename Rep > |
| | TimeInterval (std::chrono::duration< Rep, std::micro > us) |
| |
| template<typename Rep > |
| | TimeInterval (std::chrono::duration< Rep, std::milli > ms) |
| |
| template<typename Rep > |
| | TimeInterval (std::chrono::duration< Rep, std::ratio< 1 > > s) |
| |
| template<typename Rep , typename Period > |
| | TimeInterval (std::chrono::duration< Rep, Period > d) |
| |
| | operator std::chrono::nanoseconds () const |
| |
| template<typename Rep , typename Period > |
| | operator std::chrono::duration< Rep, Period > () const |
| |
| constexpr bool | isNormal () const noexcept |
| |
| constexpr bool | isNegative () const noexcept |
| |
| constexpr bool | isPositive () const noexcept |
| |
| constexpr bool | isNull () const noexcept |
| |
| constexpr bool | isInfinite () const noexcept |
| |
| constexpr bool | hasPassed () const noexcept |
| |
| constexpr struct timespec const & | ts () const noexcept |
| |
| constexpr double | s () const noexcept |
| |
| template<typename T > |
| constexpr T | s () const noexcept |
| |
| constexpr bool | isAbsBiggerThan (TimeInterval const &t) const noexcept |
| |
| constexpr bool | isBiggerThan (TimeInterval const &t) const noexcept |
| |
| constexpr bool | operator== (TimeInterval const &rhs) const noexcept |
| |
| constexpr bool | operator> (TimeInterval const &rhs) const noexcept |
| |
| constexpr bool | operator>= (TimeInterval const &rhs) const noexcept |
| |
| constexpr bool | operator< (TimeInterval const &rhs) const noexcept |
| |
| constexpr bool | operator<= (TimeInterval const &rhs) const noexcept |
| |
| constexpr void | add (TimeInterval const &t) noexcept |
| |
| constexpr void | sub (TimeInterval const &t) noexcept |
| |
| template<typename T > |
| constexpr void | mul (T x) noexcept |
| |
| constexpr TimeInterval & | operator+= (TimeInterval const &rhs) noexcept |
| |
| constexpr TimeInterval | operator+ (TimeInterval const &rhs) const noexcept |
| |
| constexpr TimeInterval & | operator-= (TimeInterval const &rhs) noexcept |
| |
| constexpr TimeInterval | operator- (TimeInterval const &rhs) const noexcept |
| |
| constexpr TimeInterval | operator- () const noexcept |
| |
| template<typename T > |
| constexpr TimeInterval & | operator*= (T x) noexcept |
| |
| template<typename T > |
| constexpr TimeInterval | operator* (T x) const noexcept |
| |
| template<typename T > |
| constexpr TimeInterval & | operator/= (T x) noexcept |
| |
| template<typename T > |
| constexpr TimeInterval | operator/ (T x) const noexcept |
| |
| string | str () const |
| |
Convenient wrapper around struct timespec that contains a time interval.
- Examples
- 5_perf.cpp, daemon_pattern.cpp, and measure.cpp.
Definition at line 82 of file time.h.