NVIDIA DeepStream SDK API Reference

9.2 Release
common::SystemTimestamp Class Reference

Detailed Description

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

Constructor & Destructor Documentation

◆ SystemTimestamp() [1/6]

common::SystemTimestamp::SystemTimestamp ( )
inlinenoexcept

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

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

◆ SystemTimestamp() [2/6]

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

Initializes a system timestamp from a duration.

Parameters
time_since_epochTime elapsed since the beginning of the epoch.

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

References time_since_epoch().

◆ SystemTimestamp() [3/6]

common::SystemTimestamp::SystemTimestamp ( const std::chrono::system_clock::time_point &  time_point)
inlinenoexcept

Initializes a system timestamp based on a point in time.

Parameters
time_pointA point in time.

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

◆ SystemTimestamp() [4/6]

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

◆ SystemTimestamp() [5/6]

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

Initializes a system timestamp from a duration.

Parameters
time_since_epochTime elapsed since the beginning of the epoch.

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

References time_since_epoch().

◆ SystemTimestamp() [6/6]

common::SystemTimestamp::SystemTimestamp ( const std::chrono::system_clock::time_point &  time_point)
inlinenoexcept

Initializes a system timestamp based on a point in time.

Parameters
time_pointA point in time.

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

Member Function Documentation

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

common::SystemTimestamp::operator std::chrono::system_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 52 of file includes/opentelemetry/common/timestamp.h.

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

common::SystemTimestamp::operator std::chrono::system_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 52 of file 9.2/includes/opentelemetry/common/timestamp.h.

◆ operator!=() [1/2]

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

Compare two steady time stamps for inequality.

Returns
true if the two time stamps are not equal.

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

◆ operator!=() [2/2]

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

Compare two steady time stamps for inequality.

Returns
true if the two time stamps are not equal.

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

◆ operator==() [1/2]

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

Compare two steady time stamps.

Returns
true if the two time stamps are equal.

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

◆ operator==() [2/2]

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

Compare two steady time stamps.

Returns
true if the two time stamps are equal.

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

◆ time_since_epoch() [1/2]

std::chrono::nanoseconds common::SystemTimestamp::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 64 of file includes/opentelemetry/common/timestamp.h.

Referenced by SystemTimestamp().

◆ time_since_epoch() [2/2]

std::chrono::nanoseconds common::SystemTimestamp::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 64 of file 9.2/includes/opentelemetry/common/timestamp.h.


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