From 2d7f024492d890fe8d59ebf89488d3ff4a40e218 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Thu, 7 Nov 2024 22:18:38 +0000 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a359c89..dec28dc 100644 --- a/README.md +++ b/README.md @@ -145,13 +145,13 @@ void main(void) ... while (1) { - float fUsage = 0.0f; __cpu_usage__(10, { - fUsage = __usage__; /*< "__usage__" stores the result */ + float fUsage = __usage__; /*< "__usage__" stores the result */ + printf("task 1 cpu usage %3.2f %%\r\n", (double)fUsage); }) { delay_us(30000); } - printf("task 1 cpu usage %3.2f %%\r\n", (double)fUsage); + delay_us(70000); }