Function rc_timespec_to_millis#

Function Documentation#

uint64_t rc_timespec_to_millis(timespec ts)#

Returns a number of milliseconds corresponding to a timespec struct.

Useful because timespec structs are annoying.

Parameters:

ts[in] timespec struct to convert

Returns:

time in milliseconds