1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/ztimer_ondemand_benchmark
2022-11-22 00:25:34 +01:00
..
main.c ztimer: add benchmarking tool 2022-11-22 00:25:34 +01:00
Makefile ztimer: add benchmarking tool 2022-11-22 00:25:34 +01:00
README.md ztimer: add benchmarking tool 2022-11-22 00:25:34 +01:00

ztimer_ondemand_benchmark

This application measures latencies introduced by ztimer_acquire() and ztimer_release(). Since it is directly interacting with the underlying peripheral, you need at least two periph_timer instances if you're benchmarking a ztimer clock based on ztimer_periph_timer.

The application tries to select a unused timer automatically. If this selection process fails, users may specify device and frequency in this test's Makefile.