1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-26 03:51:32 +00:00

Remove USETIMEFN define. (#143)

In the past, we didn't use `gettimeofday()` on all non-DOS platforms
because it wasn't available, so we had to fall back to `time()`.
Those days are long gone and we have `gettimeofday()` on all non-DOS
platforms.

This also removes some code that used `times()` when it used `time()`.
This leaves us using `getrusage()` on all non-DOS platforms. This,
much like `gettimeofday()`, is now available everywhere. Not all of
the fields used here are guaranteed by POSIX, but the ones used
here shouldn't be an issue for now.
This commit is contained in:
Bruce Mitchener
2020-12-31 05:38:58 +07:00
committed by GitHub
parent 7a74d6e66f
commit 7f7952cbad
2 changed files with 11 additions and 38 deletions

View File

@@ -252,7 +252,6 @@ typedef signed char s_char;
#ifdef LINUX
/* LINUX, the free POSIX-compliant Unix */
#define NOETHER 1
/* JDS trial 12/22/01 #define USETIMEFN 1 */
#undef REGISTER
#define REGISTER