timespec_get
extern int timespec_get(struct timespec *, int);
if ((ret = timespec_get(&ts, base)) != base) {