A timepoint relative to the system clock epoch.
This is used for marking the beginning and end of an operation.
Definition at line 19 of file includes/opentelemetry/common/timestamp.h.
Public Member Functions | |
| SystemTimestamp () noexcept | |
| Initializes a system timestamp pointing to the start of the epoch. More... | |
| template<class Rep , class Period > | |
| SystemTimestamp (const std::chrono::duration< Rep, Period > &time_since_epoch) noexcept | |
| Initializes a system timestamp from a duration. More... | |
| SystemTimestamp (const std::chrono::system_clock::time_point &time_point) noexcept | |
| Initializes a system timestamp based on a point in time. More... | |
| operator std::chrono::system_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 SystemTimestamp &other) const noexcept |
| Compare two steady time stamps. More... | |
| bool | operator!= (const SystemTimestamp &other) const noexcept |
| Compare two steady time stamps for inequality. More... | |
| SystemTimestamp () noexcept | |
| Initializes a system timestamp pointing to the start of the epoch. More... | |
| template<class Rep , class Period > | |
| SystemTimestamp (const std::chrono::duration< Rep, Period > &time_since_epoch) noexcept | |
| Initializes a system timestamp from a duration. More... | |
| SystemTimestamp (const std::chrono::system_clock::time_point &time_point) noexcept | |
| Initializes a system timestamp based on a point in time. More... | |
| operator std::chrono::system_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 SystemTimestamp &other) const noexcept |
| Compare two steady time stamps. More... | |
| bool | operator!= (const SystemTimestamp &other) const noexcept |
| Compare two steady time stamps for inequality. More... | |
|
inlinenoexcept |
Initializes a system timestamp pointing to the start of the epoch.
Definition at line 25 of file includes/opentelemetry/common/timestamp.h.
|
inlineexplicitnoexcept |
Initializes a system timestamp from a duration.
| time_since_epoch | Time elapsed since the beginning of the epoch. |
Definition at line 33 of file includes/opentelemetry/common/timestamp.h.
References time_since_epoch().
|
inlinenoexcept |
Initializes a system timestamp based on a point in time.
| time_point | A point in time. |
Definition at line 43 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Initializes a system timestamp pointing to the start of the epoch.
Definition at line 25 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlineexplicitnoexcept |
Initializes a system timestamp from a duration.
| time_since_epoch | Time elapsed since the beginning of the epoch. |
Definition at line 33 of file 9.2/includes/opentelemetry/common/timestamp.h.
References time_since_epoch().
|
inlinenoexcept |
Initializes a system timestamp based on a point in time.
| time_point | A point in time. |
Definition at line 43 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Returns a time point for the time stamp.
Definition at line 52 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Returns a time point for the time stamp.
Definition at line 52 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps for inequality.
Definition at line 84 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps for inequality.
Definition at line 84 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps.
Definition at line 74 of file 9.2/includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Compare two steady time stamps.
Definition at line 74 of file includes/opentelemetry/common/timestamp.h.
|
inlinenoexcept |
Returns the nanoseconds since the beginning of the epoch.
Definition at line 64 of file includes/opentelemetry/common/timestamp.h.
Referenced by SystemTimestamp().
|
inlinenoexcept |
Returns the nanoseconds since the beginning of the epoch.
Definition at line 64 of file 9.2/includes/opentelemetry/common/timestamp.h.