Skip to content

Conversation

@waywardmonkeys
Copy link
Contributor

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.

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.
Copy link
Collaborator

@nbriggs nbriggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nbriggs nbriggs merged commit 7f7952c into Interlisp:master Dec 30, 2020
@waywardmonkeys waywardmonkeys deleted the remove-USETIMEFN-define branch December 30, 2020 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants