Function rc_timespec_add#
Defined in File time.h
Function Documentation#
-
void rc_timespec_add(timespec *start, double seconds)#
Adds an amount of time in seconds to a timespec struct.
The time added is a double-precision floating point value to make respresenting fractions of a second easier. The timespec is passed as a pointer so it can be modified in place. Seconds may be negative.
- Parameters:
start – The start timspec, modified in place
seconds – [in] The seconds