Back to Jetson Inference

Jetson Inference: jetson

docs/html/timespec_8h.html

latest5.7 KB
Original Source

| | Jetson Inference

DNN Vision Library |

Functions | Variables

timespec.h File Reference

#include <time.h>
#include <stdint.h>
#include <stdio.h>
#include "logging.h"

Go to the source code of this file.

|

Functions

| | 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 &timestamp, char *strOut) | | | Produce a text representation of the timestamp. More...
| | | | void | timePrint (const timespec &timestamp, 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...
| | |

|

Variables

| | const timespec | __apptime_begin__ | | |

Variable Documentation

__apptime_begin__

| const timespec __apptime_begin__ |