From 12a33858c99eb45f1d989da66fb5ac25bbd93b86 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 10 May 2023 06:16:01 -0700 Subject: [PATCH] There must be only one clock() --- third_party/ctags/main.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/third_party/ctags/main.c b/third_party/ctags/main.c index bb9e545cd..4559abbc1 100644 --- a/third_party/ctags/main.c +++ b/third_party/ctags/main.c @@ -234,21 +234,8 @@ static boolean createTagsFromListFile (const char *const fileName) #if defined (HAVE_CLOCK) # define CLOCK_AVAILABLE -# ifndef CLOCKS_PER_SEC -# define CLOCKS_PER_SEC 1000000 -# endif -#elif defined (HAVE_TIMES) -# define CLOCK_AVAILABLE -# define CLOCKS_PER_SEC 60 -static clock_t clock (void) -{ - struct tms buf; - - times (&buf); - return (buf.tms_utime + buf.tms_stime); -} #else -# define clock() (clock_t)0 +#error wut #endif static void printTotals (const clock_t *const timeStamps)