Lines Matching defs:base_time
57 struct timespec base_time; /* CSP base time when timestamp set */
141 static void reset_tmstamp(struct mcap_csp *csp, struct timespec *base_time,
145 if (base_time)
146 csp->base_time = *base_time;
148 clock_gettime(CLK, &csp->base_time);
294 tmstamp = time_us(&now) - time_us(&mcl->csp->base_time)
482 struct timespec *base_time,
502 clock_gettime(CLK, base_time);
507 latency = time_us(base_time) - time_us(&t0);
510 *timestamp = mcap_get_timestamp(mcl, base_time);
521 struct timespec base_time;
532 if (!get_all_clocks(mcl, &btclock, &base_time, &tmstamp))
559 struct timespec base_time;
584 if (!get_all_clocks(mcl, &btclock, &base_time, &tmstamp)) {
608 reset_tmstamp(mcl->csp, &base_time, new_tmstamp);