Searched refs:kTimeWrapPeriodUs (Results 1 – 1 of 1) sorted by relevance
45 constexpr int64_t kTimeWrapPeriodUs = (1ll << 24) * kBaseScaleFactor; variable302 base_time_ticks_ = (ref_timestamp_us % kTimeWrapPeriodUs) / kBaseScaleFactor; in SetBase()318 (timestamp_us - last_timestamp_us_) % kTimeWrapPeriodUs; in AddReceivedPacket()319 if (delta_full > kTimeWrapPeriodUs / 2) in AddReceivedPacket()320 delta_full -= kTimeWrapPeriodUs; in AddReceivedPacket()387 if (std::abs(delta - kTimeWrapPeriodUs) < std::abs(delta)) { in GetBaseDeltaUs()388 delta -= kTimeWrapPeriodUs; // Wrap backwards. in GetBaseDeltaUs()389 } else if (std::abs(delta + kTimeWrapPeriodUs) < std::abs(delta)) { in GetBaseDeltaUs()390 delta += kTimeWrapPeriodUs; // Wrap forwards. in GetBaseDeltaUs()