Skip to content

Commit 3e606d7

Browse files
committed
feat benchmark: added system freq informations
Signed-off-by: John Sanpe <[email protected]>
1 parent 4fcf6a6 commit 3e606d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/benchmark/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ int main(void)
8686

8787
bfdev_log_info("Benchmark for PY32F0xx.\n");
8888
bfdev_log_info("Bfdev version: %s\n", __bfdev_stringify(BFDEV_VERSION));
89+
bfdev_log_info("SYSCLK freq: %u\n", HAL_RCC_GetSysClockFreq());
90+
bfdev_log_info("AHB freq: %u\n", HAL_RCC_GetHCLKFreq());
91+
bfdev_log_info("APB freq: %u\n", HAL_RCC_GetPCLK1Freq());
8992
bfdev_log_info("This may take a few minutes...\n");
9093
puts(""); /* '\n' */
9194

0 commit comments

Comments
 (0)