summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2021-01-08 21:07:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2021-01-08 21:07:57 (GMT)
commit8229cd730444707ecef238b9678a5c8d779554f0 (patch)
tree28dbb787f28e59d75da785125db09451de89b1ff /unix/tclUnixTime.c
parentdb51032d33e94c96859a874ec838558620720a09 (diff)
parent4e3cd053dbb7487dfdf2e93f5151d9bdd5f9865e (diff)
downloadtcl-8229cd730444707ecef238b9678a5c8d779554f0.zip
tcl-8229cd730444707ecef238b9678a5c8d779554f0.tar.gz
tcl-8229cd730444707ecef238b9678a5c8d779554f0.tar.bz2
Merge 8.7 (resolve conflicts)
Diffstat (limited to 'unix/tclUnixTime.c')
-rw-r--r--unix/tclUnixTime.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index 9d56709..dc48a32 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -72,13 +72,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;
}
/*
@@ -149,19 +149,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
@@ -189,7 +189,7 @@ TclpGetWideClicks(void)
double
TclpWideClicksToNanoseconds(
- Tcl_WideInt clicks)
+ long long clicks)
{
double nsec;