d_to_tv
if (d_to_tv(d, &tv) == -1)
if (d_to_tv(d, &tv) == -1) {
d_to_tv(gettime_from_timeval(&tv) - gettime(), &tv);
int d_to_tv(double, struct timeval *);