mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-31 19:33:04 +08:00
fix a serious bug found in __cycleof__
This commit is contained in:
parent
41df3b48f0
commit
c9f4be5e98
@ -250,6 +250,7 @@
|
|||||||
using(int64_t _ = get_system_ticks(), __cycle_count__ = _, \
|
using(int64_t _ = get_system_ticks(), __cycle_count__ = _, \
|
||||||
_=_, { \
|
_=_, { \
|
||||||
_ = get_system_ticks() - _; \
|
_ = get_system_ticks() - _; \
|
||||||
|
__cycle_count__ = _; \
|
||||||
if (__PLOOC_VA_NUM_ARGS(__VA_ARGS__) == 0) { \
|
if (__PLOOC_VA_NUM_ARGS(__VA_ARGS__) == 0) { \
|
||||||
printf("\r\n"); \
|
printf("\r\n"); \
|
||||||
printf("-[Cycle Report]"); \
|
printf("-[Cycle Report]"); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user