Function time_ts_diff

Function Documentation

void time_ts_diff(const struct timespec *start, const struct timespec *end, struct timespec *diff)

Get the difference between two timespecs.

diff = end - start

Parameters:
  • start – The subtractee

  • end – The subtractor

  • diff – The result