mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-17 19:13:03 +08:00
Update perf_counter.h
This commit is contained in:
parent
bd10f2fcc3
commit
a2483b2669
@ -274,7 +274,7 @@
|
||||
__cpu_usage__.lTaskUsedCycles = stop_task_cycle_counter(); \
|
||||
\
|
||||
if (__PLOOC_VA_NUM_ARGS(__VA_ARGS__) == 0) { \
|
||||
printf("%s CPU Usage %2.3f %%", __func__, \
|
||||
printf("%s CPU Usage %2.3f%%\r\n", __func__, \
|
||||
(float)((double)__cpu_usage__.lTaskUsedCycles * 100.0 / \
|
||||
(double)__cpu_usage__.lTimeElapsed)); \
|
||||
} else { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user