Lines Matching refs:ts
81 int set(int type, struct timespec *ts);
101 int AlarmImpl::set(int type, struct timespec *ts)
108 if (!ts->tv_nsec && !ts->tv_sec) {
109 ts->tv_nsec = 1;
116 memcpy(&spec.it_value, ts, sizeof(spec.it_value));
391 struct timespec ts;
392 ts.tv_sec = seconds;
393 ts.tv_nsec = nanoseconds;
395 const int result = impl->set(type, &ts);