NVIDIA DeepStream SDK API Reference

9.2 Release
common::SteadyTimestamp Class Reference

Detailed Description

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...
 

Constructor & Destructor Documentation

◆ SteadyTimestamp() [1/6]

common::SteadyTimestamp::SteadyTimestamp ( )
inlinenoexcept

Initializes a monotonic timestamp pointing to the start of the epoch.

Definition at line 104 of file includes/opentelemetry/common/timestamp.h.

◆ SteadyTimestamp() [2/6]

template<class Rep , class Period >
common::SteadyTimestamp::SteadyTimestamp ( const std::chrono::duration< Rep, Period > &  time_since_epoch)
inlineexplicitnoexcept

Initializes a monotonic timestamp from a duration.

Parameters
time_since_epochTime elapsed since the beginning of the epoch.

Definition at line 112 of file includes/opentelemetry/common/timestamp.h.

References time_since_epoch().

◆ SteadyTimestamp() [3/6]

common::SteadyTimestamp::SteadyTimestamp ( const std::chrono::steady_clock::time_point &  time_point)
inlinenoexcept

Initializes a monotonic timestamp based on a point in time.

Parameters
time_pointA point in time.

Definition at line 122 of file includes/opentelemetry/common/timestamp.h.

◆ SteadyTimestamp() [4/6]

common::SteadyTimestamp::SteadyTimestamp ( )
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.

◆ SteadyTimestamp() [5/6]

template<class Rep , class Period >
common::SteadyTimestamp::SteadyTimestamp ( const std::chrono::duration< Rep, Period > &  time_since_epoch)
inlineexplicitnoexcept

Initializes a monotonic timestamp from a duration.

Parameters
time_since_epochTime elapsed since the beginning of the epoch.

Definition at line 112 of file 9.2/includes/opentelemetry/common/timestamp.h.

References time_since_epoch().

◆ SteadyTimestamp() [6/6]

common::SteadyTimestamp::SteadyTimestamp ( const std::chrono::steady_clock::time_point &  time_point)
inlinenoexcept

Initializes a monotonic timestamp based on a point in time.

Parameters
time_pointA point in time.

Definition at line 122 of file 9.2/includes/opentelemetry/common/timestamp.h.

Member Function Documentation

◆ operator std::chrono::steady_clock::time_point() [1/2]

common::SteadyTimestamp::operator std::chrono::steady_clock::time_point ( ) const
inlinenoexcept

Returns a time point for the time stamp.

Returns
A time point corresponding to the time stamp.

Definition at line 131 of file includes/opentelemetry/common/timestamp.h.

◆ operator std::chrono::steady_clock::time_point() [2/2]

common::SteadyTimestamp::operator std::chrono::steady_clock::time_point ( ) const
inlinenoexcept

Returns a time point for the time stamp.

Returns
A time point corresponding to the time stamp.

Definition at line 131 of file 9.2/includes/opentelemetry/common/timestamp.h.

◆ operator!=() [1/2]

bool common::SteadyTimestamp::operator!= ( const SteadyTimestamp &  other) const
inlinenoexcept

Compare two steady time stamps for inequality.

Returns
true if the two time stamps are not equal.

Definition at line 163 of file 9.2/includes/opentelemetry/common/timestamp.h.

◆ operator!=() [2/2]

bool common::SteadyTimestamp::operator!= ( const SteadyTimestamp &  other) const
inlinenoexcept

Compare two steady time stamps for inequality.

Returns
true if the two time stamps are not equal.

Definition at line 163 of file includes/opentelemetry/common/timestamp.h.

◆ operator==() [1/2]

bool common::SteadyTimestamp::operator== ( const SteadyTimestamp &  other) const
inlinenoexcept

Compare two steady time stamps.

Returns
true if the two time stamps are equal.

Definition at line 153 of file 9.2/includes/opentelemetry/common/timestamp.h.

◆ operator==() [2/2]

bool common::SteadyTimestamp::operator== ( const SteadyTimestamp &  other) const
inlinenoexcept

Compare two steady time stamps.

Returns
true if the two time stamps are equal.

Definition at line 153 of file includes/opentelemetry/common/timestamp.h.

◆ time_since_epoch() [1/2]

std::chrono::nanoseconds common::SteadyTimestamp::time_since_epoch ( ) const
inlinenoexcept

Returns the nanoseconds since the beginning of the epoch.

Returns
Elapsed nanoseconds since the beginning of the epoch for this timestamp.

Definition at line 143 of file includes/opentelemetry/common/timestamp.h.

Referenced by SteadyTimestamp().

◆ time_since_epoch() [2/2]

std::chrono::nanoseconds common::SteadyTimestamp::time_since_epoch ( ) const
inlinenoexcept

Returns the nanoseconds since the beginning of the epoch.

Returns
Elapsed nanoseconds since the beginning of the epoch for this timestamp.

Definition at line 143 of file 9.2/includes/opentelemetry/common/timestamp.h.


The documentation for this class was generated from the following file: