Home | History | Annotate | Download | only in utils

Lines Matching defs:ts

56     struct timespec ts;
63 clock_gettime(CLOCK_REALTIME, &ts);
65 ts.tv_sec += t->time_msec/1000;
69 ts.tv_nsec += t->time_msec * 1000000;
70 if(ts.tv_nsec > 999999999) {
72 ts.tv_sec += 1;
73 ts.tv_nsec -= 1000000000;
75 LOC_LOGD("%s:%d]: ts.tv_sec:%d; ts.tv_nsec:%d\n"
77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec,
83 ret = pthread_cond_timedwait(&t->timer_cond, &t->timer_mutex, &ts);