From 168a1d8b278ad87e20d34d44cb7f38bc22af3c06 Mon Sep 17 00:00:00 2001 From: Francesco Gatti Date: Fri, 25 Aug 2017 06:09:29 -0700 Subject: [PATCH] color --- include/utils.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/utils.h b/include/utils.h index 922e005..a46b2c4 100644 --- a/include/utils.h +++ b/include/utils.h @@ -35,11 +35,12 @@ #define TIMER_START timespec start, end; \ clock_gettime(CLOCK_MONOTONIC, &start); -#define TIMER_STOP clock_gettime(CLOCK_MONOTONIC, &end); \ +#define TIMER_STOP_C(col) clock_gettime(CLOCK_MONOTONIC, &end); \ double t_ns = ((double)(end.tv_sec - start.tv_sec) * 1.0e9 + \ (double)(end.tv_nsec - start.tv_nsec))/1.0e6; \ - std::cout<