git: time: Use clock_gettime
Markus Pfeiffer
profmakx at crater.dragonflybsd.org
Sat Jul 15 16:22:00 PDT 2017
commit d58ea4320a54ec8513ee27ea6f286db886217c4b
Author: Markus Pfeiffer <markus.pfeiffer at morphism.de>
Date: Sat Jul 15 23:16:12 2017 +0100
time: Use clock_gettime
gettimeofday is not suitable for measuring runtimes, as it is
not guaranteed to be monotonic.
Summary of changes:
usr.bin/time/time.c | 35 ++++++++++++++++++-----------------
1 file changed, 18 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d58ea4320a54ec8513ee27ea6f286db886217c4b
--
DragonFly BSD source repository
More information about the Commits
mailing list