docs/html/group__time.html
| | Jetson Inference
DNN Vision Library |
Time Utilities Library (jetson-utils)
Timestamping operations for measuring the timing of CPU code. More...
|
|
| void | timestamp (timespec *timestampOut) |
| | Retrieve a timestamp of the current system time. More...
|
| |
| timespec | timestamp () |
| | Retrieve a timestamp of the current system time. More...
|
| |
| timespec | timeZero () |
| | Return a blank timespec that's been zero'd. More...
|
| |
| timespec | timeNew (time_t seconds, long int nanoseconds) |
| | Return an initialized timespecMore...
|
| |
| timespec | timeNew (long int nanoseconds) |
| | Return an initialized timespecMore...
|
| |
| timespec | timeAdd (const timespec &a, const timespec &b) |
| | Add two times together. More...
|
| |
| void | timeDiff (const timespec &start, const timespec &end, timespec *result) |
| | Find the difference between two timestamps. More...
|
| |
| timespec | timeDiff (const timespec &start, const timespec &end) |
| | Find the difference between two timestamps. More...
|
| |
| int | timeCmp (const timespec &a, const timespec &b) |
| | Compare two timestamps. More...
|
| |
| void | apptime (timespec *a) |
| | Retrieve the elapsed time since the process started. More...
|
| |
| uint64_t | apptime_nano () |
| | Retrieve the elapsed time since the process started (in nanoseconds). More...
|
| |
| float | apptime () |
| | Retrieve the elapsed time since the process started (in seconds). More...
|
| |
| float | timeFloat (const timespec &a) |
| | Convert to 32-bit float (in milliseconds). More...
|
| |
| double | timeDouble (const timespec &a) |
| | Convert to 64-bit double (in milliseconds). More...
|
| |
| double | timeDouble () |
| | Get current timestamp as 64-bit double (in milliseconds). More...
|
| |
| char * | timeStr (const timespec ×tamp, char *strOut) |
| | Produce a text representation of the timestamp. More...
|
| |
| void | timePrint (const timespec ×tamp, const char *text=NULL) |
| | Print the time to stdout. More...
|
| |
| void | sleepTime (const timespec &duration) |
| | Put the current thread to sleep for a specified time. More...
|
| |
| void | sleepTime (time_t seconds, long int nanoseconds) |
| | Put the current thread to sleep for a specified time. More...
|
| |
| void | sleepMs (uint64_t milliseconds) |
| | Put the current thread to sleep for a specified number of milliseconds. More...
|
| |
| void | sleepUs (uint64_t microseconds) |
| | Put the current thread to sleep for a specified number of microseconds. More...
|
| |
| void | sleepNs (uint64_t nanoseconds) |
| | Put the current thread to sleep for a specified number of nanoseconds. More...
|
| |
Timestamping operations for measuring the timing of CPU code.
|
| float apptime | ( | | ) | |
| inline |
Retrieve the elapsed time since the process started (in seconds).
|
| void apptime | ( | timespec * | a | ) | |
| inline |
Retrieve the elapsed time since the process started.
|
| uint64_t apptime_nano | ( | | ) | |
| inline |
Retrieve the elapsed time since the process started (in nanoseconds).
|
| void sleepMs | ( | uint64_t | milliseconds | ) | |
| inline |
Put the current thread to sleep for a specified number of milliseconds.
|
| void sleepNs | ( | uint64_t | nanoseconds | ) | |
| inline |
Put the current thread to sleep for a specified number of nanoseconds.
|
| void sleepTime | ( | const timespec & | duration | ) | |
| inline |
Put the current thread to sleep for a specified time.
|
| void sleepTime | ( | time_t | seconds, | | | | long int | nanoseconds | | | ) | | |
| inline |
Put the current thread to sleep for a specified time.
|
| void sleepUs | ( | uint64_t | microseconds | ) | |
| inline |
Put the current thread to sleep for a specified number of microseconds.
|
| timespec timeAdd | ( | const timespec & | a, | | | | const timespec & | b | | | ) | | |
| inline |
Add two times together.
|
| int timeCmp | ( | const timespec & | a, | | | | const timespec & | b | | | ) | | |
| inline |
Compare two timestamps.
Returns0, if timestamp A equals timestamp B >0, if timestamp A is greater than timestamp B <0, if timestamp A is less than timestamp B
|
| timespec timeDiff | ( | const timespec & | start, | | | | const timespec & | end | | | ) | | |
| inline |
Find the difference between two timestamps.
|
| void timeDiff | ( | const timespec & | start, | | | | const timespec & | end, | | | | timespec * | result | | | ) | | |
| inline |
Find the difference between two timestamps.
|
| double timeDouble | ( | | ) | |
| inline |
Get current timestamp as 64-bit double (in milliseconds).
|
| double timeDouble | ( | const timespec & | a | ) | |
| inline |
Convert to 64-bit double (in milliseconds).
|
| float timeFloat | ( | const timespec & | a | ) | |
| inline |
Convert to 32-bit float (in milliseconds).
|
| timespec timeNew | ( | long int | nanoseconds | ) | |
| inline |
Return an initialized timespec
|
| timespec timeNew | ( | time_t | seconds, | | | | long int | nanoseconds | | | ) | | |
| inline |
Return an initialized timespec
|
| void timePrint | ( | const timespec & | timestamp, |
| | | const char * | text = NULL |
| | ) | | |
| inline |
Print the time to stdout.
|
| timespec timestamp | ( | | ) | |
| inline |
Retrieve a timestamp of the current system time.
|
| void timestamp | ( | timespec * | timestampOut | ) | |
| inline |
Retrieve a timestamp of the current system time.
|
| char* timeStr | ( | const timespec & | timestamp, | | | | char * | strOut | | | ) | | |
| inline |
Produce a text representation of the timestamp.
|
| timespec timeZero | ( | | ) | |
| inline |
Return a blank timespec that's been zero'd.