-
Notifications
You must be signed in to change notification settings - Fork 2.1k
sys/benchmark: Convert to ztimer #17126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5e28680
to
d137e8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK, pls squash!
19e56ab
to
9fd09cf
Compare
Force pushed the missing kconfig bits |
9fd09cf
to
9df794e
Compare
9df794e
to
f1feaa2
Compare
All green! |
@@ -7,5 +7,5 @@ | |||
|
|||
config MODULE_BENCHMARK | |||
bool "Simple benchmarks support" | |||
depends on MODULE_XTIMER | |||
depends on MODULE_ZTIMER_USEC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be select MODULE_ZTIMER_USEC
?
sys/Makefile.dep pulls in ztimer_usec
automatically if benchmark
is used
Lines 574 to 576 in c84a40a
ifneq (,$(filter benchmark,$(USEMODULE))) | |
USEMODULE += ztimer_usec | |
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leandrolanzieri @bergzand ping.
I have an application here that uses benchmark
. With this PR it is now necessary also to use ztimer_usec
in application's makefile to be compatible with Kconfig even though ztimer_usec
is pulled in automatically by the benchmark
module. Was there any reason not to select ztimer_usec
in Kconfig with benchmark
?
Contribution description
Converts the benchmark utility to use ztimer
Testing procedure
tests/bench_runtime_coreapis/
makes use of thisOn master (nrf52840dk)
This PR (nrf52840dk)
Issues/PRs references
Another ztimer conversion