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

Function millis

src/fl/stl/chrono.cpp.hpp:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62///////////////////// PUBLIC API //////////////////////////////////////
63
64fl::u32 millis() {
65#ifdef FASTLED_TESTING
66 // Check for injected time provider first
67 {
68 fl::unique_lock<fl::mutex> lock(get_time_mutex());
69 const auto& provider = get_time_provider();
70 if (provider) {
71 return provider();
72 }
73 }
74#endif
75
76 // Use platform-specific implementation
77 return fl::platforms::millis();
78}
79
80fl::u32 micros() {
81 // Note: micros() does not support time injection

Callers 15

readStringUntilFunction · 0.70
millis64Function · 0.70
processRpcMethod · 0.50
scheduleFunctionMethod · 0.50
readSerialStringUntilFunction · 0.50
updateMethod · 0.50
update_tasks_of_typeMethod · 0.50
getTimeMethod · 0.50
drawMethod · 0.50
spawnMethod · 0.50
drawMethod · 0.50
drawTwinkleFoxMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected