diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-08 14:45:53 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-08 14:45:53 (GMT) |
| commit | 0872562c806e950919a612ff0ff16e975a1a0b59 (patch) | |
| tree | ccb49aa02e7d86522ac545c8f5ce836b89e0aa5d /unix/tclUnixTime.c | |
| parent | 7a36f112165d055e0093e8d87fd3637306b721e3 (diff) | |
| parent | f09dcac7855bb4d75a3ca3b44b9d5ce188260bff (diff) | |
| download | tcl-0872562c806e950919a612ff0ff16e975a1a0b59.zip tcl-0872562c806e950919a612ff0ff16e975a1a0b59.tar.gz tcl-0872562c806e950919a612ff0ff16e975a1a0b59.tar.bz2 | |
TIP #592 implememtation: Stop support for Windows XP, Server 2003, Vista, Server 2008
Diffstat (limited to 'unix/tclUnixTime.c')
| -rw-r--r-- | unix/tclUnixTime.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index ead7b0c..adeacb68 100644 --- a/unix/tclUnixTime.c +++ b/unix/tclUnixTime.c @@ -100,13 +100,13 @@ TclpGetSeconds(void) *---------------------------------------------------------------------- */ -Tcl_WideInt +long long TclpGetMicroseconds(void) { Tcl_Time time; tclGetTimeProcPtr(&time, tclTimeClientData); - return ((Tcl_WideInt)time.sec)*1000000 + time.usec; + return ((long long)time.sec)*1000000 + time.usec; } /* @@ -177,19 +177,19 @@ TclpGetClicks(void) *---------------------------------------------------------------------- */ -Tcl_WideInt +long long TclpGetWideClicks(void) { - Tcl_WideInt now; + long long now; if (tclGetTimeProcPtr != NativeGetTime) { Tcl_Time time; tclGetTimeProcPtr(&time, tclTimeClientData); - now = ((Tcl_WideInt)time.sec)*1000000 + time.usec; + now = ((long long)time.sec)*1000000 + time.usec; } else { #ifdef MAC_OSX_TCL - now = (Tcl_WideInt) (mach_absolute_time() & INT64_MAX); + now = (long long) (mach_absolute_time() & INT64_MAX); #else #error Wide high-resolution clicks not implemented on this platform #endif @@ -217,7 +217,7 @@ TclpGetWideClicks(void) double TclpWideClicksToNanoseconds( - Tcl_WideInt clicks) + long long clicks) { double nsec; |
