Robot Control Library
|
Go to the source code of this file.
Typedefs | |
typedef struct timespec | timespec |
typedef struct timeval | timeval |
Functions | |
void | rc_nanosleep (uint64_t ns) |
Sleep in nanoseconds. More... | |
void | rc_usleep (unsigned int us) |
Sleep in microseconds. More... | |
uint64_t | rc_nanos_since_epoch (void) |
Returns the number of nanoseconds since epoch using system CLOCK_REALTIME. More... | |
uint64_t | rc_nanos_since_boot (void) |
Returns the number of nanoseconds since system boot using CLOCK_MONOTONIC. More... | |
uint64_t | rc_nanos_thread_time (void) |
Returns the number of nanoseconds from when when the calling thread was started in CPU time. More... | |
uint64_t | rc_timespec_to_micros (timespec ts) |
Returns a number of microseconds corresponding to a timespec struct. More... | |
uint64_t | rc_timespec_to_millis (timespec ts) |
Returns a number of milliseconds corresponding to a timespec struct. More... | |
uint64_t | rc_timeval_to_micros (timeval tv) |
Returns a number of microseconds corresponding to a timeval struct. More... | |
uint64_t | rc_timeval_to_millis (timeval tv) |
Returns a number of milliseconds corresponding to a timeval struct. More... | |
timespec | rc_timespec_diff (timespec A, timespec B) |
Returns the time difference between two timespec structs as another timespec. More... | |
void | rc_timespec_add (timespec *start, double seconds) |
Adds an amount of time in seconds to a timespec struct. More... | |