fprintf(stderr, __VA_ARGS__);\
}
#define TIMER_START GTimer *__timer; {__timer = g_timer_new(); g_timer_start(__timer);}
-#define TIMER_END {gulong __debug_micro = 0; gdouble __debug_elapsed = g_timer_elapsed(__timer, &__debug_micro);\
- PRINT_DEBUG("\033[33mtimer:\033[0m elapsed: %f, micro: %lu", __debug_elapsed, __debug_micro);\
+#define TIMER_END {gdouble __debug_elapsed = g_timer_elapsed(__timer, NULL);\
+ PRINT_DEBUG("\033[33mtimer:\033[0m %fs", __debug_elapsed);\
g_timer_destroy(__timer); \
}
#else