Merge "NNAPI VTS: use max time point instead of uint64_t max"
This commit is contained in:
commit
775fe5c617
1 changed files with 4 additions and 2 deletions
|
@ -67,8 +67,10 @@ static OptionalTimePoint makeOptionalTimePoint(DeadlineBoundType deadlineBoundTy
|
|||
deadline.nanosecondsSinceEpoch(nanosecondsSinceEpoch);
|
||||
} break;
|
||||
case DeadlineBoundType::UNLIMITED: {
|
||||
uint64_t unlimited = std::numeric_limits<uint64_t>::max();
|
||||
deadline.nanosecondsSinceEpoch(unlimited);
|
||||
const auto maxTime = std::chrono::time_point<std::chrono::steady_clock,
|
||||
std::chrono::nanoseconds>::max();
|
||||
const uint64_t nanosecondsSinceEpoch = maxTime.time_since_epoch().count();
|
||||
deadline.nanosecondsSinceEpoch(nanosecondsSinceEpoch);
|
||||
} break;
|
||||
}
|
||||
return deadline;
|
||||
|
|
Loading…
Reference in a new issue