diff options
Diffstat (limited to 'src/systemtime.c')
-rw-r--r-- | src/systemtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemtime.c b/src/systemtime.c index 2675fea..b086bc0 100644 --- a/src/systemtime.c +++ b/src/systemtime.c @@ -35,7 +35,7 @@ systemtime_get_time(double *t) #elif defined(_POSIX_TIMERS) /* POSIX timers */ struct timespec now; if (clock_gettime(CLOCK_REALTIME, &now)) { - perror("clock_gettime"); + weprintf("clock_gettime CLOCK_REALTIME:"); return -1; } *t = now.tv_sec + (now.tv_nsec / 1000000000.0); @@ -43,7 +43,7 @@ systemtime_get_time(double *t) #else /* other platforms */ struct timeval now; if (gettimeofday(&now, NULL)) { - perror("gettimeofday"); + weprintf("gettimeofday:"); return -1; } *t = now.tv_sec + (now.tv_usec / 1000000.0); |