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

Method elapsed

src/fl/system/timeout.h:62–64  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

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

Callers 1

timeout.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected