aboutsummaryrefslogtreecommitdiff
path: root/sys/bsm
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2014-05-08 19:10:04 +0000
committerAlan Somers <asomers@FreeBSD.org>2014-05-08 19:10:04 +0000
commit540c78258cbea72a9b5b48b3c10d7a0feae50a1d (patch)
tree89c0164df08937129faf83adb970f8445406bbae /sys/bsm
parentf296249f584cc8162fb6f5d873decb5e6e4ae4ff (diff)
downloadsrc-540c78258cbea72a9b5b48b3c10d7a0feae50a1d.tar.gz
src-540c78258cbea72a9b5b48b3c10d7a0feae50a1d.zip
Incorporate feedback from bde and jilles regarding r265472 to dd(1).
* Don't use sysexits.h. Just exit 1 on error and 0 otherwise. * Don't sacrifice precision by converting the output of clock_gettime() to a double and then comparing the results. Instead, subtract the values of the two clock_gettime() calls, then convert to double. * Don't use CLOCK_MONOTONIC_PRECISE. It's an unportable synonym for CLOCK_MONOTONIC. * Use more appropriate names for some local variables. * In the summary message, round elapsed time to the nearest microsecond. Reported by: bde, jilles MFC after: 3 days X-MFC-With: 265472
Notes
Notes: svn path=/head/; revision=265698
Diffstat (limited to 'sys/bsm')
0 files changed, 0 insertions, 0 deletions