summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-18 11:31:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-18 11:31:11 (GMT)
commit0d15664cbdafeb59a53986a6e646b79f7e5124da (patch)
tree4bdf91ec9d33355c6244ece15f779e618e18b57d /unix/tclUnixTime.c
parentcdfb697e13091bb9f205d581b83f1c5854be98da (diff)
downloadtcl-0d15664cbdafeb59a53986a6e646b79f7e5124da.zip
tcl-0d15664cbdafeb59a53986a6e646b79f7e5124da.tar.gz
tcl-0d15664cbdafeb59a53986a6e646b79f7e5124da.tar.bz2
Change (internal) signatures for TclpGetClicks/TclpGetSeconds to use "unsigned long long" in stead of Tcl_WideUInt as return value.
Diffstat (limited to 'unix/tclUnixTime.c')
-rw-r--r--unix/tclUnixTime.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index dc48a32..990503d 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -49,10 +49,10 @@ void *tclTimeClientData = NULL;
*----------------------------------------------------------------------
*/
-Tcl_WideUInt
+unsigned long long
TclpGetSeconds(void)
{
- return time(NULL);
+ return (unsigned long long)time(NULL);
}
/*
@@ -78,7 +78,7 @@ TclpGetMicroseconds(void)
Tcl_Time time;
tclGetTimeProcPtr(&time, tclTimeClientData);
- return ((long long)time.sec)*1000000 + time.usec;
+ return ((long long)(unsigned long)time.sec)*1000000 + time.usec;
}
/*
@@ -100,30 +100,30 @@ TclpGetMicroseconds(void)
*----------------------------------------------------------------------
*/
-Tcl_WideUInt
+unsigned long long
TclpGetClicks(void)
{
- Tcl_WideUInt now;
+ unsigned long long now;
#ifdef NO_GETTOD
if (tclGetTimeProcPtr != NativeGetTime) {
Tcl_Time time;
tclGetTimeProcPtr(&time, tclTimeClientData);
- now = (Tcl_WideUInt)time.sec*1000000 + time.usec;
+ now = (unsigned long long)(unsigned long)time.sec*1000000 + time.usec;
} else {
/*
* A semi-NativeGetTime, specialized to clicks.
*/
struct tms dummy;
- now = (Tcl_WideUInt) times(&dummy);
+ now = (unsigned long long)times(&dummy);
}
#else
Tcl_Time time;
tclGetTimeProcPtr(&time, tclTimeClientData);
- now = (Tcl_WideUInt)time.sec*1000000 + time.usec;
+ now = (unsigned long long)time.sec*1000000 + time.usec;
#endif
return now;