@brief Get elapsed time since timeout started @param current_time Current timestamp (in same units as constructor) @return Elapsed time (in same units as constructor)
| 60 | /// @param current_time Current timestamp (in same units as constructor) |
| 61 | /// @return Elapsed time (in same units as constructor) |
| 62 | u32 elapsed(u32 current_time) const { |
| 63 | return current_time - mStartTime; // Rollover-safe |
| 64 | } |
| 65 | |
| 66 | /// @brief Reset the timeout to start counting from specified time |
| 67 | /// @param start_time New start timestamp |