There must be only one clock()

This commit is contained in:
Justine Tunney 2023-05-10 06:16:01 -07:00
parent 6cb9553706
commit 12a33858c9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -234,21 +234,8 @@ static boolean createTagsFromListFile (const char *const fileName)
#if defined (HAVE_CLOCK) #if defined (HAVE_CLOCK)
# define CLOCK_AVAILABLE # 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 #else
# define clock() (clock_t)0 #error wut
#endif #endif
static void printTotals (const clock_t *const timeStamps) static void printTotals (const clock_t *const timeStamps)