@brief Check if the timeout has completed @param current_time Current timestamp (in same units as constructor) @return true if elapsed time >= duration, false otherwise @note Handles uint32_t rollover correctly via unsigned arithmetic
| 52 | /// @return true if elapsed time >= duration, false otherwise |
| 53 | /// @note Handles uint32_t rollover correctly via unsigned arithmetic |
| 54 | bool done(u32 current_time) const { |
| 55 | u32 elapsed_time = current_time - mStartTime; // Rollover-safe |
| 56 | return elapsed_time >= mDuration; |
| 57 | } |
| 58 | |
| 59 | /// @brief Get elapsed time since timeout started |
| 60 | /// @param current_time Current timestamp (in same units as constructor) |
no outgoing calls
no test coverage detected