Lines Matching refs:ts
76 struct timespec ts[1];78 clock_gettime(CLOCK_MONOTONIC, ts);79 return (double)ts->tv_sec + ts->tv_nsec/1e9;85 struct timespec ts;88 ts.tv_sec = (time_t)delay;89 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9);92 ret = nanosleep(&ts, &ts);