ast icon indicating copy to clipboard operation
ast copied to clipboard

Replace uses of timeofday() with tvgettime()

Open krader1961 opened this issue 6 years ago • 1 comments

While reviewing PR #1327 I noticed that we now assume gettimeofday() is available. The code that currently uses the timeofday() macro should be using tvgettime() from libast; i.e., src/lib/libast/tm/tvgettime.c.

krader1961 avatar Jun 09 '19 04:06 krader1961

There is only one use of tvgettime(): in tvtouch(). And tvtouch() is only used one place: hist_touch(). We're probably better off eliminating that (indirect) use of tvgettime() rather than adding additional uses.

krader1961 avatar Jun 21 '19 04:06 krader1961