diff --git a/common/utils/time_meas.h b/common/utils/time_meas.h index 0735597633c82420539cc58180d29cd4ef5c4cbc..f791b485d1aabe2b2d4410ec0f98f4d5185a3a60 100644 --- a/common/utils/time_meas.h +++ b/common/utils/time_meas.h @@ -218,4 +218,10 @@ time_stats_t *register_meas(char *name); void send_meas(time_stats_t *ts, int msgid); void end_meas(void); +#define timeIt(a) \ + { \ + uint64_t deb = rdtsc_oai(); \ + a; \ + LOG_W(UTIL, #a ": %llu\n", (rdtsc_oai() - deb) / 3000); \ + } #endif