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

Function delay

src/platforms/wasm/platform_time.cpp.hpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace platforms {
24
25void delay(fl::u32 ms) {
26 if (ms == 0) return;
27 u32 end = ::millis() + ms;
28 while (::millis() < end) {
29 // Busy-wait (no async pumping at platform layer)
30 }
31}
32
33void delayMicroseconds(fl::u32 us) {
34 if (us == 0) return;

Callers 3

yieldFunction · 0.70
next_loopFunction · 0.50
sketch_fake.hppFile · 0.50

Calls 1

millisFunction · 0.70

Tested by

no test coverage detected