From e2b7943d32d4ec4d9c00f64b28a515e461c04056 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 21 Jun 2024 15:38:25 +0200 Subject: [PATCH] timing.h: START -> TIMING_START --- timing.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/timing.h b/timing.h index 3895e49..bd190ef 100644 --- a/timing.h +++ b/timing.h @@ -22,7 +22,7 @@ * @author Niki * @date 2020 - 2024 * - * @brief Timing macros START and STOP + * @brief Timing macros TIMING_START and TIMING_STOP * * 2 macro are provided to print the elapsed time between the 2 to stdout. */ @@ -39,7 +39,7 @@ extern "C" { /** * Start the timer. */ -#define START struct timeval TIMING_start, TIMING_stop; \ +#define TIMING_START struct timeval TIMING_start, TIMING_stop; \ /* 1 usec = 0.000001 s */ \ char cusec[7]; \ gettimeofday(&TIMING_start, NULL); @@ -47,7 +47,7 @@ extern "C" { /** * Stop the timer and print the elapsed time to stdout. */ -#define STOP gettimeofday(&TIMING_stop, NULL); \ +#define TIMING_STOP gettimeofday(&TIMING_stop, NULL); \ TIMING_stop.tv_sec = TIMING_stop.tv_sec - TIMING_start.tv_sec; \ TIMING_stop.tv_usec = TIMING_stop.tv_usec - TIMING_start.tv_usec; \ sprintf(cusec, "%0.6d", TIMING_stop.tv_usec); \ -- 2.27.0