From c9f4be5e98edbaa04ce2251e5c9f40204613bebb Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Sat, 29 Jan 2022 16:46:54 +0000 Subject: [PATCH] fix a serious bug found in __cycleof__ --- perf_counter.h | 1 + 1 file changed, 1 insertion(+) diff --git a/perf_counter.h b/perf_counter.h index 1ec4dcc..d75990c 100644 --- a/perf_counter.h +++ b/perf_counter.h @@ -250,6 +250,7 @@ using(int64_t _ = get_system_ticks(), __cycle_count__ = _, \ _=_, { \ _ = get_system_ticks() - _; \ + __cycle_count__ = _; \ if (__PLOOC_VA_NUM_ARGS(__VA_ARGS__) == 0) { \ printf("\r\n"); \ printf("-[Cycle Report]"); \