MCPcopy Create free account
hub / github.com/FastLED/FastLED / done

Method done

src/fl/system/timeout.h:54–57  ·  view source on GitHub ↗

@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

Source from the content-addressed store, hash-verified

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)

Callers 3

compile_board_examplesFunction · 0.80
concurrent_runFunction · 0.80
timeout.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected