diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-09 23:20:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-09 23:20:06 -0400 |
commit | baf9ee660c9f1d44d64341e225f9e0d7b808424d (patch) | |
tree | dd77e67044ce5cca653306d48569bdfbbc81e91d /src/xtime.c | |
parent | 9c74802117d97bdb55be08a954319e1b8733cb9d (diff) | |
download | bfs-baf9ee660c9f1d44d64341e225f9e0d7b808424d.tar.xz |
xtime: Remove xgettime()
clock_gettime() is available everywhere by now.
Diffstat (limited to 'src/xtime.c')
-rw-r--r-- | src/xtime.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/xtime.c b/src/xtime.c index 186651b..df8fd61 100644 --- a/src/xtime.c +++ b/src/xtime.c @@ -350,17 +350,3 @@ invalid: error: return -1; } - -int xgettime(struct timespec *result) { -#if _POSIX_TIMERS > 0 - return clock_gettime(CLOCK_REALTIME, result); -#else - struct timeval tv; - int ret = gettimeofday(&tv, NULL); - if (ret == 0) { - result->tv_sec = tv.tv_sec; - result->tv_nsec = tv.tv_usec * 1000L; - } - return ret; -#endif -} |