summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdMZ.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2001-11-20 15:14:09 (GMT)
committerKevin B Kenny <kennykb@acm.org>2001-11-20 15:14:09 (GMT)
commite87036076007b0251db8cec91216cec265d24cdb (patch)
treea8328c93805ad4bbee746318fde0cd0c020e34b9 /generic/tclCmdMZ.c
parentecc1b3678188fcdd01a7b014420019c1a1a19935 (diff)
downloadtcl-e87036076007b0251db8cec91216cec265d24cdb.zip
tcl-e87036076007b0251db8cec91216cec265d24cdb.tar.gz
tcl-e87036076007b0251db8cec91216cec265d24cdb.tar.bz2
* generic/tclCmdMZ.c (Tcl_TimeObjCmd) Added extra parentheses to a
cast expression to remove ambiguity and conform with Tcl Engineering Manual. [Suggestion by Donal Fellows in commentary on patch #483500]
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r--generic/tclCmdMZ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c
index 10fd6e7..3fe8199 100644
--- a/generic/tclCmdMZ.c
+++ b/generic/tclCmdMZ.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdMZ.c,v 1.26.2.4 2001/11/19 22:06:42 kennykb Exp $
+ * RCS: @(#) $Id: tclCmdMZ.c,v 1.26.2.5 2001/11/20 15:14:09 kennykb Exp $
*/
#include "tclInt.h"
@@ -2517,7 +2517,7 @@ Tcl_TimeObjCmd(dummy, interp, objc, objv)
}
TclpGetTime(&stop);
- totalMicroSec = ( (double) ( stop.sec - start.sec ) * 1.0e6
+ totalMicroSec = ( ( (double) ( stop.sec - start.sec ) ) * 1.0e6
+ ( stop.usec - start.usec ) );
sprintf(buf, "%.0f microseconds per iteration",
((count <= 0) ? 0 : totalMicroSec/count));