#pragma once #include struct timespec timespec_sub(const struct timespec * a, const struct timespec * b); struct timespec timespec_add(const struct timespec * a, const struct timespec * b); struct timespec timespec_div(const struct timespec * a, int n); struct timespec timespec_average(const struct timespec * ts, int length);