diff options
author | das <das@noemail.net> | 2006-08-21 01:08:41 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2006-08-21 01:08:41 (GMT) |
commit | db14e5c95eb932fc664fdd3246542b06eeeaad13 (patch) | |
tree | 79988284b81c4c2f62215be9b742d8dca444ab1c /generic/tclClock.c | |
parent | ae9d02689479555c3186308d311a1e384aeb5d3f (diff) | |
download | tcl-db14e5c95eb932fc664fdd3246542b06eeeaad13.zip tcl-db14e5c95eb932fc664fdd3246542b06eeeaad13.tar.gz tcl-db14e5c95eb932fc664fdd3246542b06eeeaad13.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
FossilOrigin-Name: 26f9667ec2c3713a85fef9087a0489b83a34b753
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); |