NVIDIA DeepStream SDK API Reference

9.2 Release
Time Class Reference

Detailed Description

Formats and compares system-clock timestamps.

Definition at line 24 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

Public Member Functions

 Time ()
 Initialize the timestamp to the current system time. More...
 
 Time (std::chrono::system_clock::time_point time)
 Initialize from a system-clock time point. More...
 
 ~Time ()
 Release the timestamp wrapper. More...
 
TimeStamp getUnixTimestampNanoSeconds ()
 Return nanoseconds elapsed since the Unix epoch. More...
 
std::chrono::system_clock::time_point getTimePoint ()
 Return the stored system-clock time point. More...
 
std::string getStrTimeRelativeTo (std::chrono::system_clock::time_point time)
 Format the stored timestamp relative to another time point. More...
 
std::string getStrSystemTime ()
 Format the stored timestamp as a system date and time. More...
 
 Time ()
 Initialize the timestamp to the current system time. More...
 
 Time (std::chrono::system_clock::time_point time)
 Initialize from a system-clock time point. More...
 
 ~Time ()
 Release the timestamp wrapper. More...
 
TimeStamp getUnixTimestampNanoSeconds ()
 Return nanoseconds elapsed since the Unix epoch. More...
 
std::chrono::system_clock::time_point getTimePoint ()
 Return the stored system-clock time point. More...
 
std::string getStrTimeRelativeTo (std::chrono::system_clock::time_point time)
 Format the stored timestamp relative to another time point. More...
 
std::string getStrSystemTime ()
 Format the stored timestamp as a system date and time. More...
 

Constructor & Destructor Documentation

◆ Time() [1/4]

Time::Time ( )
inline

Initialize the timestamp to the current system time.

Definition at line 32 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ Time() [2/4]

Time::Time ( std::chrono::system_clock::time_point  time)
inline

Initialize from a system-clock time point.

Parameters
[in]timeSystem-clock time point to store.

Definition at line 39 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ ~Time() [1/2]

Time::~Time ( )
inline

Release the timestamp wrapper.

Definition at line 42 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ Time() [3/4]

Time::Time ( )
inline

Initialize the timestamp to the current system time.

Definition at line 32 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ Time() [4/4]

Time::Time ( std::chrono::system_clock::time_point  time)
inline

Initialize from a system-clock time point.

Parameters
[in]timeSystem-clock time point to store.

Definition at line 39 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ ~Time() [2/2]

Time::~Time ( )
inline

Release the timestamp wrapper.

Definition at line 42 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

Member Function Documentation

◆ getStrSystemTime() [1/2]

std::string Time::getStrSystemTime ( )
inline

Format the stored timestamp as a system date and time.

Definition at line 67 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

References getUnixTimestampNanoSeconds().

◆ getStrSystemTime() [2/2]

std::string Time::getStrSystemTime ( )
inline

Format the stored timestamp as a system date and time.

Definition at line 67 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

References getUnixTimestampNanoSeconds().

◆ getStrTimeRelativeTo() [1/2]

std::string Time::getStrTimeRelativeTo ( std::chrono::system_clock::time_point  time)
inline

Format the stored timestamp relative to another time point.

Parameters
[in]timeReference time point subtracted from the stored timestamp.

Definition at line 60 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ getStrTimeRelativeTo() [2/2]

std::string Time::getStrTimeRelativeTo ( std::chrono::system_clock::time_point  time)
inline

Format the stored timestamp relative to another time point.

Parameters
[in]timeReference time point subtracted from the stored timestamp.

Definition at line 60 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ getTimePoint() [1/2]

std::chrono::system_clock::time_point Time::getTimePoint ( )
inline

Return the stored system-clock time point.

Definition at line 51 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ getTimePoint() [2/2]

std::chrono::system_clock::time_point Time::getTimePoint ( )
inline

Return the stored system-clock time point.

Definition at line 51 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

◆ getUnixTimestampNanoSeconds() [1/2]

TimeStamp Time::getUnixTimestampNanoSeconds ( )
inline

Return nanoseconds elapsed since the Unix epoch.

Definition at line 45 of file sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.

Referenced by DsLowLevelTracker::generateMotInputParams(), and getStrSystemTime().

◆ getUnixTimestampNanoSeconds() [2/2]

TimeStamp Time::getUnixTimestampNanoSeconds ( )
inline

Return nanoseconds elapsed since the Unix epoch.

Definition at line 45 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/timeStamp.hpp.


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