Lines Matching refs:ts
1045 - struct timespec ts;
1046 + struct timeval ts;
1054 - struct timespec ts;
1055 + struct timeval ts;
1121 -cdf_timestamp_to_timespec(struct timespec *ts, cdf_timestamp_t t)
1122 +cdf_timestamp_to_timespec(struct timeval *ts, cdf_timestamp_t t)
1131 - ts->tv_nsec = (t % CDF_TIME_PREC) * 100;
1134 + ts->tv_usec = (t % CDF_TIME_PREC) * CDF_TIME_PREC;
1151 -cdf_timespec_to_timestamp(cdf_timestamp_t *t, const struct timespec *ts)
1152 +cdf_timespec_to_timestamp(cdf_timestamp_t *t, const struct timeval *ts)
1160 - *t = (ts->ts_nsec / 100) * CDF_TIME_PREC;
1161 + *t = (ts->ts_usec / CDF_TIME_PREC) * CDF_TIME_PREC;
1169 - struct timespec ts;
1170 + struct timeval ts;
2800 - struct timespec ts;
2801 + struct timeval ts;
2802 cdf_timestamp_to_timespec(&ts, t);
2803 t = ts.tv_sec;
2824 - struct timespec ts;
2825 + struct timeval ts;
2831 + memset(&ts, 0, sizeof(ts));
2855 - cdf_timestamp_to_timespec(&ts, tp);
2856 - c = cdf_ctime(&ts.tv_sec, tbuf);
2858 + const time_t sec = ts.tv_sec;
2859 + if (cdf_timestamp_to_timespec(&ts, tp) == -1) {