Home | History | Annotate | Download | only in libnbaio

Lines Matching defs:ts

136     struct timespec ts;
137 if (!clock_gettime(CLOCK_MONOTONIC, &ts)) {
138 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec));
142 void NBLog::Writer::logTimestamp(const struct timespec& ts)
147 log(EVENT_TIMESTAMP, &ts, sizeof(struct timespec));
255 void NBLog::LockedWriter::logTimestamp(const struct timespec& ts)
258 Writer::logTimestamp(ts);
321 struct timespec ts;
334 memcpy(&ts, &copy[i - length - 1], sizeof(struct timespec));
335 if (ts.tv_sec > maxSec) {
336 maxSec = ts.tv_sec;
371 memcpy(&ts, data, sizeof(struct timespec));
372 long prevNsec = ts.tv_nsec;
384 if (tsNext.tv_sec != ts.tv_sec) {
408 (int) ts.tv_sec, (int) (ts.tv_nsec / 1000000),
409 (int) ((ts.tv_nsec + deltaTotal) / 1000000),
415 timestamp.appendFormat("[%d.%03d]", (int) ts.tv_sec,
416 (int) (ts.tv_nsec / 1000000));