| 62 | ///////////////////// PUBLIC API ////////////////////////////////////// |
| 63 | |
| 64 | fl::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 | |
| 80 | fl::u32 micros() { |
| 81 | // Note: micros() does not support time injection |
no outgoing calls
no test coverage detected