FastLED 3.9.15
Loading...
Searching...
No Matches

◆ bench()

template<int hR, int vR>
static void bench ( const char * label)
static

Definition at line 22 of file BlurBenchmark.ino.

22 {
24
25 // Warmup
28
29 // Timed run
31 unsigned long t0 = micros();
32 for (int i = 0; i < ITERS; i++) {
34 }
35 unsigned long elapsed = micros() - t0;
36
37 Serial.print(label);
38 Serial.print(": ");
39 Serial.print(elapsed / ITERS);
40 Serial.println(" us/iter");
41}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define ITERS
static void fill_test_data()
#define WIDTH
#define HEIGHT
void blurGaussian(Canvas< RGB_T > &canvas, alpha8 dimFactor)
Compile-time Gaussian blur with independent H/V radii.
fl::u32 micros()
Universal microsecond timer - returns microseconds since system startup.
Simple rectangular canvas for graphics operations Combines a pixel buffer with dimensions for cache-o...
Definition canvas.h:66
#define Serial
Definition serial.h:304

References fl::gfx::blurGaussian(), fill_test_data(), HEIGHT, ITERS, leds, NUM_LEDS, Serial, and WIDTH.

Referenced by setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: