summaryrefslogtreecommitdiff
path: root/bin/dd/args.c
diff options
context:
space:
mode:
authorHugh Graham <hugh@cvs.openbsd.org>2001-08-07 14:39:28 +0000
committerHugh Graham <hugh@cvs.openbsd.org>2001-08-07 14:39:28 +0000
commit1123cf6f64f4be51a66dca47d05690ebf62b1be8 (patch)
tree8898b01cbc215f101f3a89a547d9d9302ae5b3b7 /bin/dd/args.c
parentcaf7ba66da583ab2f500dda722b13b550ed1b19e (diff)
Modify timekeeping in an effort to produce a sane bandwidth measure
for a short running dd process. Some floating point is used so that microsecond precision can be kept without shortening the off_t excessively. millert says ok.
Diffstat (limited to 'bin/dd/args.c')
-rw-r--r--bin/dd/args.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index 05e0cabf767..95e4979601c 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: args.c,v 1.8 1998/07/09 18:39:23 deraadt Exp $ */
+/* $OpenBSD: args.c,v 1.9 2001/08/07 14:39:27 hugh Exp $ */
/* $NetBSD: args.c,v 1.7 1996/03/01 01:18:58 jtc Exp $ */
/*-
@@ -42,11 +42,12 @@
#if 0
static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: args.c,v 1.8 1998/07/09 18:39:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: args.c,v 1.9 2001/08/07 14:39:27 hugh Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
+#include <sys/time.h>
#include <err.h>
#include <errno.h>