Loading...
Searching...
No Matches
benchmark.h File Reference

Interface for running simple benchmarks. More...

Detailed Description

Interface for running simple benchmarks.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file benchmark.h.

#include <stdint.h>
#include "irq.h"
#include "ztimer/stopwatch.h"
+ Include dependency graph for benchmark.h:

Go to the source code of this file.

Macros

#define BENCHMARK_FUNC(name, runs, func)
 Measure the runtime of a given function call.
 

Functions

void benchmark_print_time (uint32_t time, unsigned long runs, const char *name)
 Output the given time as well as the time per run on STDIO.