Fix MacOS warning in precise_time.c

This commit is contained in:
Mike Black W9MDB 2024-09-08 08:55:06 -05:00
parent 8fcb77664c
commit d20a235860

View File

@ -46,13 +46,14 @@ double monotonic_seconds()
#define NANOS_PER_SECF 1000000000.0
#define USECS_PER_SEC 1000000
static int showme = 0;
#if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
// If we have it, use clock_gettime and CLOCK_MONOTONIC.
#include <time.h>
static int showme = 0;
double monotonic_seconds()
{
if (showme)