summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-11-12 23:09:15 +0000
committerphk <phk@FreeBSD.org>1996-11-12 23:09:15 +0000
commit74bda8433b8407a6199e7840fb48fde136cd1c8f (patch)
treecf9743a63f5092eca553c4787aa943a896b48572 /bin/dd/dd.c
parenta81549782df942af453c4fc58169a57de424af37 (diff)
downloadFreeBSD-src-74bda8433b8407a6199e7840fb48fde136cd1c8f.zip
FreeBSD-src-74bda8433b8407a6199e7840fb48fde136cd1c8f.tar.gz
Increase precision of duration to milliseconds.
Some heuristics to avoid overflow in calculation attempted.
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r--bin/dd/dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 55c4e76..a0c6f7a 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: dd.c,v 1.4 1995/01/17 23:04:29 ache Exp $
+ * $Id: dd.c,v 1.5 1995/10/23 21:31:48 ache Exp $
*/
#ifndef lint
@@ -213,7 +213,7 @@ setup()
ctab[cnt] = cnt;
}
}
- (void)time(&st.start); /* Statistics timestamp. */
+ (void)gettimeofday(&st.start, 0); /* Statistics timestamp. */
}
static void
OpenPOWER on IntegriCloud