mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-24 19:23:03 +08:00
Update README.md
This commit is contained in:
parent
f956cae6e4
commit
2d7f024492
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user