BRL-CAD
|
Cross platform wrapper for microsecond accuracy timing functionality. More...
Files | |
file | time.h |
Functions | |
int64_t | bu_gettime (void) |
void | bu_utctime (struct bu_vls *utc_result, const int64_t time_val) |
Cross platform wrapper for microsecond accuracy timing functionality.
int64_t bu_gettime | ( | void | ) |
Returns a microsecond-accurate wall-clock time counter.
Example use:
void bu_utctime | ( | struct bu_vls * | utc_result, |
const int64_t | time_val | ||
) |
Evaluate the time_t input as UTC time in ISO format.
The UTC time is written into the user-provided bu_vls struct and is also returned and guaranteed to be a non-null result, returning a static "NULL" UTC time if an error is encountered.