diff options
author | das <das> | 2006-08-21 01:08:41 (GMT) |
---|---|---|
committer | das <das> | 2006-08-21 01:08:41 (GMT) |
commit | d9504ba9f92205956e0b4aa1fa79e44b10a9d68d (patch) | |
tree | 79988284b81c4c2f62215be9b742d8dca444ab1c /generic/tclClock.c | |
parent | d70383944a28777ea679b1e1b4be38c2a42b3960 (diff) | |
download | tcl-d9504ba9f92205956e0b4aa1fa79e44b10a9d68d.zip tcl-d9504ba9f92205956e0b4aa1fa79e44b10a9d68d.tar.gz tcl-d9504ba9f92205956e0b4aa1fa79e44b10a9d68d.tar.bz2 |
* generic/tclClock.c (ClockClicksObjCmd): add support for Darwin
* generic/tclCmdMZ.c (Tcl_TimeObjCmd): nanosecond resolution timer
* generic/tclInt.h: to [clock clicks] and [time]
* unix/configure.in (Darwin): when TCL_WIDE_CLICKS defined.
* unix/tclUnixTime.c (TclpGetWideClicks, TclpWideClicksToNanoseconds):
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index 1abd1e1..35bae5b 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclClock.c,v 1.56 2006/08/10 13:07:43 dkf Exp $ + * RCS: @(#) $Id: tclClock.c,v 1.57 2006/08/21 01:08:41 das Exp $ */ #include "tclInt.h" @@ -1689,7 +1689,12 @@ ClockClicksObjCmd( break; case CLICKS_NATIVE: Tcl_SetObjResult(interp, Tcl_NewWideIntObj( (Tcl_WideInt) - TclpGetClicks())); +#ifndef TCL_WIDE_CLICKS + TclpGetClicks() +#else + TclpGetWideClicks() +#endif + )); break; case CLICKS_MICROS: Tcl_GetTime(&now); |