to_timespec
struct timespec start = to_timespec(INT64_MAX), end = {};
struct timespec min = to_timespec(INT64_MAX);
avg = to_timespec(thread_ns / nr_devices);
return to_timespec(to_ns(a) - to_ns(b));