Update README.md

This commit is contained in:
Gabriel Wang 2024-11-07 22:18:38 +00:00 committed by GitHub
parent f956cae6e4
commit 2d7f024492
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}