mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
There must be only one clock()
This commit is contained in:
parent
6cb9553706
commit
12a33858c9
1 changed files with 1 additions and 14 deletions
15
third_party/ctags/main.c
vendored
15
third_party/ctags/main.c
vendored
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue