A timepoint relative to the monotonic clock epoch.
This is used for calculating the duration of an operation.
Definition at line 98 of file includes/opentelemetry/common/timestamp.h.
Public Member Functions | |
| SteadyTimestamp () noexcept | |
| Initializes a monotonic timestamp pointing to the start of the epoch. More... | |
| template<class Rep , class Period > | |
| SteadyTimestamp (const std::chrono::duration< Rep, Period > &time_since_epoch) noexcept | |
| Initializes a monotonic timestamp from a duration. More... | |
| SteadyTimestamp (const std::chrono::steady_clock::time_point &time_point) noexcept | |
| Initializes a monotonic timestamp based on a point in time. More... | |
| operator std::chrono::steady_clock::time_point () const noexcept | |
| Returns a time point for the time stamp. More... | |
| std::chrono::nanoseconds | time_since_epoch () const noexcept |
| Returns the nanoseconds since the beginning of the epoch. More... | |
| bool | operator== (const SteadyTimestamp &other) const noexcept |
| Compare two steady time stamps. More... | |
| bool | operator!= (const SteadyTimestamp &other) const noexcept |
| Compare two steady time stamps for inequality. More... | |
| SteadyTimestamp () noexcept | |
| Initializes a monotonic timestamp pointing to the start of the epoch. More... | |
| template<class Rep , class Period > | |
| SteadyTimestamp (const std::chrono::duration< Rep, Period > &time_since_epoch) noexcept | |
| Initializes a monotonic timestamp from a duration. More... | |
| SteadyTimestamp (const std::chrono::steady_clock::time_point &time_point) noexcept | |
| Initializes a monotonic timestamp based on a point in time. More... | |
| operator std::chrono::steady_clock::time_point () const noexcept | |
| Returns a time point for the time stamp. More... | |
| std::chrono::nanoseconds | time_since_epoch () const noexcept |
| Returns the nanoseconds since the beginning of the epoch. More... | |
| bool | operator== (const SteadyTimestamp &other) const noexcept |
| Compare two steady time stamps. More... | |
| bool | operator!= (const SteadyTimestamp &other) const noexcept |
| Compare two steady time stamps for inequality. More... | |
|
inlinenoexcept |
Initializes a monotonic timestamp pointing to the start of the epoch.
Definition at line 104 of file includes/opentelemetry/common/timestamp.h.
|
inlineexplicitnoexcept |
Initializes a monotonic timestamp from a duration.
| time_since_epoch | Time elapsed since the beginning of the epoch. |
Definition at line 112 of file includes/opentelemetry/common/timestamp.h.
References time_since_epoch().
|
inlinenoexcept |
Initializes a monotonic timestamp based on a point in time.
| time_point | A point in time. |
Definition at line 122 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Initializes a monotonic timestamp pointing to the start of the epoch.
Definition at line 104 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlineexplicitnoexcept |
Initializes a monotonic timestamp from a duration.
| time_since_epoch | Time elapsed since the beginning of the epoch. |
Definition at line 112 of file 9.2/includes/opentelemetry/common/timestamp.h.
References time_since_epoch().
|
inlinenoexcept |
Initializes a monotonic timestamp based on a point in time.
| time_point | A point in time. |
Definition at line 122 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Returns a time point for the time stamp.
Definition at line 131 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Returns a time point for the time stamp.
Definition at line 131 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps for inequality.
Definition at line 163 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps for inequality.
Definition at line 163 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps.
Definition at line 153 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps.
Definition at line 153 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Returns the nanoseconds since the beginning of the epoch.
Definition at line 143 of file includes/opentelemetry/common/timestamp.h.
Referenced by SteadyTimestamp().
|
inlinenoexcept |
Returns the nanoseconds since the beginning of the epoch.
Definition at line 143 of file 9.2/includes/opentelemetry/common/timestamp.h.