mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Tests: reduced timestamp comparison precision to reduce test failure probability with parallel build
This commit is contained in:
parent
3a86edad62
commit
c7d6bcbdda
@ -88,7 +88,7 @@ inline uavcan::UtcTime tsUtc(uint64_t usec) { return uavcan::UtcTime::fromUSec(u
|
||||
inline uavcan::MonotonicDuration durMono(int64_t usec) { return uavcan::MonotonicDuration::fromUSec(usec); }
|
||||
|
||||
template <typename T>
|
||||
static bool areTimestampsClose(const T& a, const T& b, int64_t precision_usec = 10000)
|
||||
static bool areTimestampsClose(const T& a, const T& b, int64_t precision_usec = 100000)
|
||||
{
|
||||
return (a - b).getAbs().toUSec() < precision_usec;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user