Tcl Source Code

All files named "win/tclWinTime.c"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for win/tclWinTime.c

2024-08-29
08:23
Merge [f6c559b364487a9d]: Space before tab is an extremely unlikely to be correct indentation pattern. file: [4f837216a1] check-in: [8a11a89576] user: pooryorick branch: unchained, size: 34801
2024-08-27
21:31
Merge [835b1a5566c28af4]: More whitespace cleanup. file: [7ae19c00bc] check-in: [fc7d06c8b8] user: pooryorick branch: unchained, size: 34836
17:16
Merge [5ed1c2b3664bb1c5]: Fix clang warning: tclWinTime.c:84:6: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] {0, 0}, ^~~~ { }. file: [889adb671f] check-in: [afe14635ec] user: pooryorick branch: unchained, size: 34837
2024-08-20
15:44
Merge [19499b816370cd3f], "Fix suggestion in [86dd172271], updating Tcl_Time.sec to "long long". This is a binary incompatibility for 32-bit platforms!". file: [3483ca3ef2] check-in: [891c8d0689] user: pooryorick branch: unchained, size: 34827
2024-07-20
15:59
Merge trunk [91c2f411e7e71552], TIP #636 (tip-636-tcl9-644), resolve all conflicts including those resulting from conflicting Tcl_Obj interface implementations, and relicense under GNU Affero General Public License. All tests pass. file: [168d182c43] check-in: [d8a3450f12] user: pooryorick branch: unchained, size: 34920
2024-06-04
15:35
Space before tab is an extremely unlikely to be correct indentation pattern file: [a49d32d448] check-in: [f6c559b364] user: dkf branch: main, size: 34430
2024-05-28
12:38
Make TclGlob() a static function. Sentinel/indenting/comment improvements (all backported from 8.7) file: [5f330163c8] check-in: [5f6c7373c1] user: jan.nijtmans branch: core-8-6-branch, size: 41649
2024-05-10
15:40
More whitespace cleanup file: [cc1e68a07a] check-in: [835b1a5566] user: dkf branch: main, size: 34465
2024-04-27
17:30
Fix clang warning: tclWinTime.c:84:6: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] {0, 0}, ^~~~ { } file: [917637eceb] check-in: [5ed1c2b366] user: jan.nijtmans branch: main, size: 34466
17:26
Fix clang warning: tclWinTime.c:84:6: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] {0, 0}, ^~~~ { } file: [bb36c4b8cc] check-in: [240572962a] user: jan.nijtmans branch: core-8-branch, size: 41987
2024-04-26
14:50
Fix clang warning: tclWinTime.c:84:6: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] {0, 0}, ^~~~ { } file: [c24b4253e2] check-in: [c9564c2520] user: jan.nijtmans branch: core-8-6-branch, size: 41682
2024-04-18
15:06
Tidy up some indentation and other little code style issues file: [0fe8291417] check-in: [cb11914788] user: dkf branch: tidy-indentation, size: 34458
2024-03-20
13:14
(backport) more spacing/formatting tweaks. For now, macosx/unix/win only. file: [8189f61ed8] check-in: [dc8a99efff] user: jan.nijtmans branch: core-8-branch, size: 41977
2023-08-24
17:33
Update Tcl_Time for 32-bit systems and win64, being able to handle time > 2038. Suggested in in ticket [86dd172271] file: [a573e7c5b9] check-in: [3dcef36ee2] user: jan.nijtmans branch: bug-86dd172271, size: 34456
2023-04-12
14:25
Correct spelling errors in comments and documentation, but also a non-comment corrections in history.tcl and tcltest.test. file: [29ce037e57] check-in: [d65da06a77] user: pooryorick branch: main, size: 34549
13:30
Correct spelling errors in comments and documentation, but also a non-comment corrections in history.tcl and tcltest.test. file: [db7b36453b] check-in: [aca8de0aeb] user: pooryorick branch: core-8-branch, size: 42019
09:35
Correct spelling errors in comments and documentation, but also non-comment corrections in history.tcl and tcltest.test. file: [87d07edfa0] check-in: [ee3df4e647] user: pooryorick branch: core-8-6-branch, size: 41672
2022-10-21
14:58
Don't bother _MSC_VER < 1900 any more file: [99328cc94b] check-in: [27165e6040] user: jan.nijtmans branch: core-8-branch, size: 42019
2022-09-02
07:42
Some more (internal) ClientData -> void * changes file: [7bc614f439] check-in: [1f524aee1d] user: jan.nijtmans branch: main, size: 34549
2022-05-31
13:25
merge 8-5-event-perf-branch file: [41b78d8068] check-in: [2a854432fb] user: sebres branch: sebres-8-6-event-perf-branch, size: 35088
13:22
[windows] avoid overflow by calculation of perf-counter to 100ns as signed wide int (also fixes negative initial base for monotonic time and incorrect time distance by very large offsets) file: [b2011138dd] check-in: [6b4a81cdba] user: sebres branch: sebres-8-5-event-perf-branch, size: 37783
13:20
correct comment for TclpGetUTimeMonotonic file: [d4441e60be] check-in: [7376838890] user: sebres branch: sebres-8-5-event-perf-branch, size: 37502
2022-02-21
16:35
Merge 8.7 file: [02d9360856] check-in: [b84a93d7ba] user: jan.nijtmans branch: main, size: 34591
16:30
Merge 8.6 file: [e606f7e5e3] check-in: [91b14c222b] user: jan.nijtmans branch: core-8-branch, size: 42229
16:18
Fix [fb4a0a6675]: signed integer overflow in TclpGetClicks() file: [94e83eed4f] check-in: [8779e57115] user: jan.nijtmans branch: core-8-6-branch, size: 41671
2021-09-21
08:36
Experiment: Make Tcl_Time a long long in stead of a struct file: [54dc65736a] check-in: [7d007b4694] user: jan.nijtmans branch: tcl-time-64bit, size: 34326
2021-08-23
10:35
Merge 8.5 file: [436b9d5192] check-in: [3352f4f245] user: jan.nijtmans branch: core-8-6-branch, size: 41652
10:01
Add FALLTHRU markers, to help GCC emit less false warnings file: [61cd8442f4] check-in: [85f10205a7] user: jan.nijtmans branch: core-8-5-branch, size: 44359
2021-04-21
08:49
Merge 8.7 file: [6185a17705] check-in: [0879304c58] user: jan.nijtmans branch: main, size: 34585
08:43
Unbreak Windows build (windows 32-bit only, not checked by GITHUB actions) file: [54d5842718] check-in: [291aa336d9] user: jan.nijtmans branch: core-8-branch, size: 42211
2021-04-03
13:53
Clean up the notifier code to not spread the hooks quite so widely file: [6ba763a9af] check-in: [a263b27340] user: dkf branch: main, size: 34586
2021-04-02
18:41
Don't do double definition; code was moved to tclInt.h previously. file: [93d28d4355] check-in: [92e68283ee] user: dkf branch: dkf/notifier-cleanup, size: 42212
2021-03-30
08:22
Refactoring, ahoy file: [efa6f0c997] check-in: [7365fa0cf2] user: dkf branch: dkf/notifier-cleanup, size: 42798
2021-02-18
11:31
Change (internal) signatures for TclpGetClicks/TclpGetSeconds to use "unsigned long long" in stead of Tcl_WideUInt as return value. file: [bb89bed2e6] check-in: [a939981a1b] user: jan.nijtmans branch: main, size: 33758
2021-01-08
21:07
Merge 8.7 (resolve conflicts) file: [2cc309de66] check-in: [5295f674c1] user: dgp branch: main, size: 33687
09:37
Omit -Wdeclaration-after-statement from CFLAGS: No longer needed since we stopped support for MSVC 6++ Change Tcl_WideInt -> long long in various places: Tcl_WideInt could be a 128-bit type, we don't want that everywhere. file: [d27c4f40a5] check-in: [174a9adac8] user: jan.nijtmans branch: tip-592, size: 41269
2021-01-07
13:42
Merge 8.7. Don't bother BorlandC, LCC and WatcomC any more, since they (probably) cannot handle Windows 7 API anyway. file: [57c8d9ad03] check-in: [7d0cf14313] user: jan.nijtmans branch: tip-592, size: 41301
2020-12-08
15:42
Merge 8.7 file: [3a6b20bb0d] check-in: [71493b571b] user: jan.nijtmans branch: main, size: 33719
15:31
Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet file: [b008f0fb81] check-in: [4254aa305b] user: jan.nijtmans branch: core-8-branch, size: 41844
2020-04-25
22:32
Merge 8.6 file: [f2edc4b600] check-in: [30a29680e1] user: jan.nijtmans branch: core-8-branch, size: 41844
22:16
encoding-12.6 only works for "ucs2" for now. Don't use (deprecated) INLINE and CONST file: [e43fea479d] check-in: [aaeafee98b] user: jan.nijtmans branch: core-8-6-branch, size: 41641
2020-03-22
21:28
Merge 8.7 file: [c8810f5ead] check-in: [d652d14132] user: jan.nijtmans branch: trunk, size: 33719
21:24
Merge 8.6 file: [71397bac12] check-in: [4757d0acec] user: jan.nijtmans branch: core-8-branch, size: 41844
21:16
Even more uppercase HEX representations in source-code file: [c4930a8aab] check-in: [ed3245630a] user: jan.nijtmans branch: core-8-6-branch, size: 41641
2020-03-17
01:20
merge 8.7 file: [71b7d5f275] check-in: [4d9717c8ef] user: dgp branch: trunk, size: 33719
01:01
TIP 569 - remove lint comments file: [06abd77d58] check-in: [658a498ae4] user: dgp branch: core-8-branch, size: 41844
2020-03-09
16:34
merge 8.7 file: [5571484819] check-in: [a0ed9240c8] user: dgp branch: trunk, size: 33734
16:13
TCL_UNUSED for win sources. file: [68457bc0a4] check-in: [2c8f3c4653] user: dgp branch: core-8-branch, size: 41859
2020-02-28
12:46
Merge 8.7 file: [d61415a8be] check-in: [b7af922d61] user: jan.nijtmans branch: trunk, size: 33819
2019-09-19
18:27
Merge 8.7 file: [4f36c3d1c9] check-in: [f6491a4282] user: jan.nijtmans branch: cplusplus, size: 41944
15:36
Merge 8.7 file: [e832536582] check-in: [8c85c9ded5] user: jan.nijtmans branch: trunk, size: 33712
15:24
Merge 8.6 file: [7dfa33c16e] check-in: [6b92f77a0a] user: jan.nijtmans branch: core-8-branch, size: 41837
11:36
Don't build the Tcl library in Unicode mode any more. Just tclAppInit.c (and cat32 on Windows) file: [ad0f6b2bea] check-in: [31d001f4a3] user: jan.nijtmans branch: implicit-unicode, size: 41641
2019-09-14
21:52
Merge 8.7 file: [578e9fbd0f] check-in: [6f27e2ad0a] user: jan.nijtmans branch: cplusplus, size: 41942
2019-09-07
14:03
Merge 8.6. Remove 3 duplicate build-entries in .travis.yml file: [d8b38327be] check-in: [b44bbee483] user: jan.nijtmans branch: core-8-branch, size: 41835
13:58
Don't let Tcl compilation depend on USE_32BIT_TIME_T any more: Microsoft could discontinue this macro any moment, then we are prepared .... As a bonus: time_t is now allowed to be 64-bit internally, without effect on the C API (like stub-enabled extensions) file: [6191c52db3] check-in: [b88d81cb55] user: jan.nijtmans branch: core-8-6-branch, size: 41639
2019-09-06
08:58
Don't let Tcl depend on USE_32BIT_TIME_T any more: If your compiler supports it, time_t will be 64-bit internally. But at API-level, time_t will still be restricted to 32-bit on Win32 (Not on Win64). This keeps Tcl_StatBuf the same (unless USE_64BIT_TIME_T is defined), so 64-bit times still cannot be used everywhere. file: [d7b848b81b] check-in: [04a10c0bee] user: jan.nijtmans branch: bug-4718b41c56, size: 44362
2019-09-05
15:14
Mark more function paramaters as unused. Now Tcl compiles fully (on UNIX and Windows) without -Wunused-parameters warnings file: [6395c660be] check-in: [48b1783ecd] user: jan.nijtmans branch: cplusplus, size: 41422
2019-08-29
13:28
Merge tip-548 file: [c359494662] check-in: [c933888049] user: jan.nijtmans branch: cplusplus, size: 41346
2019-08-23
09:07
Merge 8.7 file: [69d794aa85] check-in: [0a4ebc2d56] user: jan.nijtmans branch: trunk, size: 33710
09:03
Merge 8.6 Update effective_tld_names.txt.gz to the latest version. Adapt .gitattributes and .fossil-settings/binary-glob to handle *.gz file transparently in fossil/git file: [e282b2af21] check-in: [0714da3ed9] user: jan.nijtmans branch: core-8-branch, size: 41315
2019-08-22
12:20
Fix [8566dc22f9]: various spelling fixes in comments file: [440011cf96] check-in: [319c60966d] user: jan.nijtmans branch: core-8-6-branch, size: 41119
12:19
Fix [8566dc22f9]: various spelling fixes in comments file: [9ca916b235] check-in: [978c80ef75] user: jan.nijtmans branch: core-8-5-branch, size: 43842
2019-08-02
12:48
Merge 8.7 file: [536e4703b3] check-in: [8c55a09333] user: jan.nijtmans branch: trunk, size: 33710
12:47
Merge 8.6 file: [7e6c3a0cc6] check-in: [b908a74678] user: jan.nijtmans branch: core-8-branch, size: 41315
12:45
Add one more knownMsvcBug marker, for a test-case which sometimes fails in Travis. Fix a struct initializer, add two typecasts and a "const", which can generate gcc warnings with some compiler options. file: [62bdc4dd66] check-in: [3331352b51] user: jan.nijtmans branch: core-8-6-branch, size: 41119
12:15
Merge 8.7. Continue implementation for win32 file: [46eba0a56c] check-in: [ff6fa30271] user: jan.nijtmans branch: cplusplus, size: 41346
2019-04-02
19:17
Merge 8.6 file: [16a83fd08f] check-in: [1bcfcb3ac6] user: jan.nijtmans branch: androwish, size: 25764
2019-03-09
21:22
merge 8-5-event-perf-branch file: [792ce3cb82] check-in: [697065a8e5] user: sebres branch: sebres-8-6-event-perf-branch, size: 34715
18:41
TclpScaleUTime fixed typo, only if native scaling used (tclScaleTimeProcPtr == NativeScaleTime) the relationship is 1:1 and nothing has to be done. file: [f3f99aa725] check-in: [fca5fb3444] user: sebres branch: sebres-8-5-event-perf-branch, size: 37410
2019-03-08
11:37
merge 8-5-event-perf-branch (restore merge point after complex merge across branches 8.6/8.6-timerate/etc) file: [45ee1809c5] check-in: [852b037b2f] user: sebres branch: sebres-8-6-event-perf-branch, size: 34715
11:34
3-way merge 8.6 - timerate is part of Tcl now (since TIP#527 got merged), conflicts resolved, merge-points restored, configure rebuilt, etc file: [e3f246c66f] check-in: [102958b94e] user: sebres branch: sebres-8-6-event-perf-branch, size: 34676
04:37
cpu-count (performance counter) recognition is rewritten (also resolves gcc warning: suggest parentheses around '&&' within '||') file: [9e63df05bc] check-in: [518ab3c556] user: sebres branch: sebres-8-5-event-perf-branch, size: 37410
04:05
merge sebres-8-5-timerate (prepare for consolidation with 8.5) file: [537fa60f4f] check-in: [ca89c4e5a7] user: sebres branch: sebres-8-5-event-perf-branch, size: 37371
2019-03-07
08:39
Merge 8.7 file: [1a9b2607a6] check-in: [feb76896c3] user: jan.nijtmans branch: trunk, size: 33707
08:31
Merge 8.6. Remove unneeded code from init.tcl file: [8e3f17c9b0] check-in: [3efa92355e] user: jan.nijtmans branch: core-8-branch, size: 41312
08:00
Fix some gcc/MSVC (harmless) compiler warnings. Remove some unnecessary end-of-line spacing file: [94e754a26c] check-in: [4100db67b1] user: jan.nijtmans branch: core-8-6-branch, size: 41116
2019-03-05
18:23
merge 8.7 (TIP#527, New measurement facilities in TCL: New command timerate, performance test suite) file: [5afd503c33] check-in: [e41cbd042a] user: sebres branch: trunk, size: 33724
17:34
merge 8.6 (TIP#527, New measurement facilities in TCL: New command timerate, performance test suite) file: [0ab3c6bc7e] check-in: [2d254280f0] user: sebres branch: core-8-branch, size: 41329
2019-02-13
02:57
merge 8-5-timerate (?max-count?, break possibility, diverse fixes) + windows time-calibration cycle optimization [f6637d3dd8] (clock ticks never backwards, more precise and smooth drifting) file: [c0ea6b6ca0] check-in: [2f5413a0fb] user: sebres branch: sebres-8-6-timerate, size: 41133
2019-02-12
18:41
merge 8.5 (note: to avoid too many conflicts, merged using `fossil merge --baseline 0055a16a8b core-8-5-branch`) file: [2ba310dfa2] check-in: [0e846f3e6f] user: sergey.brester branch: sebres-8-5-timerate, size: 43842
2019-02-07
15:45
merge 8.6(.9), conflicts resolved file: [85511b1ab8] check-in: [f29f1e9566] user: sergey.brester branch: sebres-8-6-timerate, size: 38092
2019-01-10
14:43
merge 8.6 file: [de281ac6d2] check-in: [1de35d1115] user: sebres branch: sebres-8-6-clock-speedup-cr2, size: 38088
2019-01-03
20:49
Merge 8.6 file: [da60b7a2fd] check-in: [f809471afd] user: jan.nijtmans branch: core-8-branch, size: 33326
20:48
Fix conflict with timezone() function in some MSVC versions file: [fba993d796] check-in: [8ca7418824] user: jan.nijtmans branch: core-8-6-branch, size: 33130
20:47
Fix conflict with timezone() function in some MSVC versions file: [0190ef6358] check-in: [9ca59559ba] user: jan.nijtmans branch: core-8-5-branch, size: 35834
2018-12-30
22:50
Fix [3cf3a939d3]: timezone deprecated in vc2017 file: [1894ea1c60] check-in: [8cd0f15296] user: jan.nijtmans branch: core-8-branch, size: 33261
22:47
Fix [3cf3a939d3]: timezone deprecated in vc2017. Also remove unix/config.status.lineno, which was -apparently - checked-in by accident in previous commit file: [0dd7bd9fc2] check-in: [60046a53c0] user: jan.nijtmans branch: core-8-6-branch, size: 33065
22:44
Fix [3cf3a939d3]: timezone deprecated in vc2017 file: [499960044d] check-in: [f062d9ee2c] user: jan.nijtmans branch: core-8-5-branch, size: 35769
2018-09-05
13:45
Merge 8.7. Change some internal function signatures, accounting for the 64-bit era. file: [d15ca80418] check-in: [4280c4f9d0] user: jan.nijtmans branch: trunk, size: 25738
2017-11-08
15:50
Tcl-9 huge cleanup: Remove many unused internal functions which do nothing more than occupy the internal stub table. file: [70dc46e457] check-in: [5b49111b6d] user: jan.nijtmans branch: tcl-9-cleanup, size: 25856
2017-07-10
08:53
merge resp. reintegrate sebres-8-5-event-perf-branch to 8.6 file: [cbe5b50ba1] check-in: [fed961497a] user: sebres branch: sebres-8-6-event-perf-branch, size: 34460
2017-07-03
13:32
cleanup... file: [7d6fe5c235] check-in: [059712404c] user: sebres branch: sebres-8-5-event-perf-branch, size: 37155
13:32
Introduced monotonic time as ultimate fix for time-jump issue (fixed for windows and unix now, TIP #302 fully implemented now); Usage of monotonic time instead of adjustment via timeJump/timeJumpEpoch is more precise and effective. New sub-command "clock monotonic" to provide monotonic time facility for tcl-level. file: [131c1c565b] check-in: [b9371d7b63] user: sebres branch: sebres-8-5-event-perf-branch, size: 38204
13:29
interim commit: trying to resolve time-freezes with new facilities timeJump/timeJumpEpoch file: [6e26b49e0d] check-in: [ec9fea1726] user: sebres branch: sebres-8-5-event-perf-branch, size: 38545
13:29
win: calibration cycle completely rewritten (no calibration thread needed, soft drifts within 250ms intervals, fewer discrepancy and fewer virtual time gradation, etc). todo: implement resetting timer-resolution to original value (without calibration thread now). file: [5fcd893967] check-in: [e4ba9947f0] user: sebres branch: sebres-8-5-event-perf-branch, size: 37301
13:29
interim commit: amend with optimization file: [3cb1e847b8] check-in: [1a808e5865] user: sebres branch: sebres-8-5-event-perf-branch, size: 51303
13:29
interim commit: time-drift backwards fix... (try to resolve using counter variance + frequency factor) file: [9375347665] check-in: [7f10e3530d] user: sebres branch: sebres-8-5-event-perf-branch, size: 47700
13:29
interim commit: time-drift backwards fix... (try to resolve using frequency factor) file: [3d865b6140] check-in: [03036dea9d] user: sebres branch: sebres-8-5-event-perf-branch, size: 47466
13:29
interim commit: time-drift backwards fix... file: [208a7c1872] check-in: [dd49011f15] user: sebres branch: sebres-8-5-event-perf-branch, size: 51751
13:29
interim commit: try to fix time-drift backwards (calibration? something else?)... file: [96741ffe9a] check-in: [8f6fe6ce01] user: sebres branch: sebres-8-5-event-perf-branch, size: 49618
13:29
interim commit: try to fix time-drift backwards (too long offset after calibration? something else?)... file: [a4e1f252f4] check-in: [53b9e566d9] user: sebres branch: sebres-8-5-event-perf-branch, size: 48113
13:25
dynamic increase of timer resolution corresponding wait-time; non-blocking wait for event - if block-time set outside an event source traversal, use it as timeout, so can return with result 0 (no events); file: [65f9cc0b0f] check-in: [3aa1cefdf7] user: sebres branch: sebres-8-5-event-perf-branch, size: 43849
2017-05-31
09:19
merge core-8-6-branch (except: the "timerate" command and the clock performance-tests are kept) file: [0a61e6c0b0] check-in: [1922f2d481] user: jan.nijtmans branch: trunk, size: 38068
08:59
More code review, e.g. use Tcl_SetObjResult in stead of Tcl_SetResult, preventing a (char *) type case. No functional changes. file: [9900c20da9] check-in: [a666a90e03] user: jan.nijtmans branch: sebres-8-6-clock-speedup-cr1, size: 37872
2017-05-23
21:57
[win32] optimized calibration cycle (makes Tcl for windows "RTS" resp. NRT-capable): - the clock ticks never backwards (avoid it by negative drifts using comparison of times before and after calibration); - more precise, smooth/soft drifting (avoids too large drifts, already after 10 iterations the drift gets fewer as 0.1 microseconds); - because of more accurate drifting (aspire to the smallest difference), we can prolong calibration interval (up to 10 seconds by small tdiff-value);

Closes ticket [b7b707a310ea42e9f1b29954ee8ca13ae91ccabe] "[win32] NRT-only - NativeGetTime backwards time-drifts bug" file: [088be13dc2] check-in: [f6637d3dd8] user: sebres branch: sebres-8-5-timerate, size: 43626

2017-05-16
12:41
back-ported branch sebres-8-6-timerate (new command "timerate" for 8.5) file: [e5b2586d42] check-in: [c8c40eda06] user: sebres branch: sebres-8-5-timerate, size: 40563
2017-05-11
18:53
merge trunk (to sebres-trunk-timerate) file: [72e17beb85] check-in: [53c18af29e] user: sebres branch: sebres-trunk-timerate, size: 38072
2017-05-09
21:58
back-ported branch sebres_trunk_timerate (new command "timerate" for 8.6) file: [a7d1cc2b11] check-in: [aa888d99ab] user: sebres branch: sebres-8-6-timerate, size: 37876
2017-05-03
10:20
[win] Ensure nothing calls CreateThread directly, may cause conflicts when using the CRT library resp. libraries with static TLS. Rewritten using new TclWinThreadCreate (call TclWinThreadExit added at end of corresponding thread proc). file: [5b394277f0] check-in: [a18ff63eb7] user: sebres branch: core-8-5-branch-fix-1997007, size: 35632
2017-04-13
10:00
Merge trunk file: [9e4420a196] check-in: [0169fbc878] user: jan.nijtmans branch: tkt3328635-posix-monotonic-clock, size: 33145
2017-02-09
13:45
[win] accomplished winTime module using very fast wide clicks, with denominator scale to/from microseconds, and therefore more precise "timerate" results under windows (using similar mechanisms as by Mac OSX). Especially multi-threaded, because it works without lock opposite to microseconds (that use crictical section, because of the calibration thread). The reason for usage of wide clicks instead microseconds explains following example (shows 20% performance deference): % timerate -calibrate {} % timerate {clock microseconds} 5000 0.297037 µs/# 14465901 # 3366585 #/sec 4296.906 nett-ms % timerate {clock clicks} 5000 0.247797 µs/# 16869084 # 4035554 #/sec 4180.116 nett-ms file: [55faab2aaa] check-in: [a26ab7123b] user: sebres branch: sebres-trunk-timerate, size: 37844
2017-02-07
19:35
[timerate] bug fix: missing scale conversion by Mac OSX on platform where high resolution clicks are not microseconds based; [win] use high resolution timer for the wide clicks and microseconds directly, prevent several forwards/backwards conversions; [win, unix, mac-osx] normalize some functions for common usage in different time units (clicks, micro- and nanoseconds)

# Conflicts: # win/tclWinTime.c file: [3d6d5c3898] check-in: [6554392102] user: sebres branch: sebres-trunk-timerate, size: 35478

2017-01-17
10:28
merge trunk file: [be7fa356f7] check-in: [bcb14c7343] user: jan.nijtmans branch: semver, size: 33110
2017-01-16
12:50
Merge zipfs file: [33345a6537] check-in: [79d25736fb] user: jan.nijtmans branch: androwish, size: 32949
2017-01-11
14:39
merge trunk file: [8aad122b93] check-in: [787a8c193b] user: jan.nijtmans branch: novem, size: 25725
2017-01-09
17:53
Merge bug_b87ad7e914 file: [e500f990e2] check-in: [ea80926604] user: sebres branch: trunk, size: 32882
17:51
Merge bug_b87ad7e914 file: [f4d299b4b9] check-in: [0f88ee352f] user: sebres branch: core-8-6-branch, size: 32914
09:08
Fix for [b87ad7e914], rebased to core-8-5-branch (who said fossil doesn't have 'rebase'...), and moved the definition of "struct _timeb t" to the top of the function. This branch is ready to be merged to core-8-5-branch, it looks good to me. Thanks to sebres (Dipl. Ing. Sergey G. Brester) file: [311f9a817f] check-in: [b23e0b20c4] user: jan.nijtmans branch: bug_b87ad7e914, size: 35618
2017-01-02
14:31
[win] bug fix in NativeGetTime: each call of it blurs current performance counters actualized in calibration thread in UpdateTimeEachSecond; This entails that sometimes sporadically time-drifts resp. jump-esque time-shifts occurred, what for example produces very confusing results during time measurement. [unix] wrong cast fixed in TclpGetWideClicks: multiplication with 1000000 in long int may cause overflow

See ticket b87ad7e9146832d505f9a430d779c5313c440256 file: [d6f2b0c7d2] check-in: [b6fc234ef3] user: sebres branch: bug_b87ad7e914, size: 32888

2016-12-15
11:28
Merge trunk file: [0b1a9dc2e8] check-in: [959decb933] user: jan.nijtmans branch: semver, size: 32648
2016-11-29
12:26
merge trunk file: [a459141463] check-in: [0a73f68e8e] user: jan.nijtmans branch: novem, size: 25263
11:10
more internal use of size_t (in stead of int) file: [b619c9ba09] check-in: [ad1e711238] user: jan.nijtmans branch: trunk, size: 32420
2016-11-11
15:18
merge trunk file: [52627d4b77] check-in: [6ca5f2d8bf] user: jan.nijtmans branch: novem, size: 25258
14:53
Fix harmless gcc warning message: using "unsigned" doesn't serve any purpose, actually. file: [6fbc90835e] check-in: [01243c07ff] user: jan.nijtmans branch: trunk, size: 32415
2016-09-26
15:38
Merge core-8-6-branch. upstream androwish modifications. file: [2d7c00ce89] check-in: [88fd04e92c] user: jan.nijtmans branch: androwish, size: 32487
09:35
[3328635] Latest patch from Christian Werner file: [b0180a5610] check-in: [965d56c3af] user: jan.nijtmans branch: tkt3328635-posix-monotonic-clock, size: 32459
2016-06-30
13:55
Merge trunk file: [99549dcc83] check-in: [f1bf3ef179] user: jan.nijtmans branch: semver, size: 32652
13:16
Simplify use of "struct" keyword in many places. file: [1b07e3476c] check-in: [2e6ea5716f] user: jan.nijtmans branch: trunk, size: 32424
2016-03-30
20:03
The following patch against a stock tcl 8.6.5 source tree tries to

implement most of TIP #302 for UN*X and WIN32/64:

* use clock_gettime(CLOCK_MONOTONIC) for relative timing (UN*X)
when available (tested at runtime)
* use PTHREAD_CONDATTR_SETCLOCK et.al. for pthread_cond (UN*X)
when available (tested at runtime)
* use GetTickCount64() for relative timing (WIN64)
* use GetTickCount() for relative timing (WIN32 for WINNT<6.0)
* configure (UN*X) detects availabilty of clock_gettime() and
pthread_condattr_setclock() plus adds optional -lrt to LIBS
* configure (WIN32) adds command line option --with-tickcount
to turn on GetTickCount*() usage

Trade-off: implementation eliminates virtualized time, unfortunately.

Best regards,

Christian Werner

--- missing merge ---

diff -ur tcl8.6.5-orig/win/configure.in tcl8.6.5/win/configure.in

--- tcl8.6.5-orig/win/configure.in 2016-02-29 20:13:09.000000000 +0100

+++ tcl8.6.5/win/configure.in 2016-03-25 06:47:47.712516747 +0100

@@ -142,6 +142,15 @@

])
AC_DEFINE(HAVE_ZLIB, 1, [Is there an installed zlib?])

+AC_ARG_WITH(tickcount,

+ AC_HELP_STRING([--with-tickcount],

+ [use GetTickCount for timers, turns off interp time limits]),

+ [tcl_ok=$withval], [tcl_ok=no])

+AC_MSG_RESULT([$tcl_ok])

+if test $tcl_ok = yes; then

+ AC_DEFINE(WIN32_USE_TICKCOUNT, 1, [Use GetTickCount for timers?])

+fi

+

AC_CHECK_TYPE([intptr_t], [ AC_DEFINE([HAVE_INTPTR_T], 1, [Do we have the intptr_t type?])], [ AC_CACHE_CHECK([for pointer-size signed integer type], tcl_cv_intptr_t, [
file: [2e8c34ae54] check-in: [6fa1088680] user: oehhar branch: tip-302, size: 32738
2016-01-06
11:46
Merge trunk. If TCL_NO_DEPRECATED is defined, make all internal stub funcions MODULE_SCOPE file: [8ed8b0f3a1] check-in: [89443c0c3d] user: jan.nijtmans branch: semver, size: 32680
2015-08-24
07:58
Remove unused internal stub entries as well. file: [14bf570b5f] check-in: [7dc4bc38ec] user: jan.nijtmans branch: androwish, size: 27455
2013-05-23
11:28
When compiling Tcl with mingw32/wsl-4.0, make sure that no 64-bit time functions are used, which don't exist in Win95/98/ME. file: [f3d0cc9041] check-in: [6f3fbd689c] user: jan.nijtmans branch: core-8-4-branch, size: 31076
2013-05-19
20:44
merge trunk file: [2c5e2f4e54] check-in: [964dda3207] user: jan.nijtmans branch: novem, size: 25267
19:09
Fix for FreeBSD, and remove support for older FreeBSD versions. Patch by Pietro Cerutti file: [3f1a769a85] check-in: [29afce30ee] user: jan.nijtmans branch: trunk, size: 32452
19:03
Fix for FreeBSD, and remove support for older FreeBSD versions. Patch by Pietro Cerutti file: [787226bbfb] check-in: [970c40e701] user: jan.nijtmans branch: core-8-5-branch, size: 35156
2013-05-17
15:08
- eliminate compiler warning when compiling with Visual Studio. - Make sure that _ftime() from msvcrt.dll is used, not ftime() from mingw (which might use 64-bit time_t) file: [4b89c61daf] check-in: [62fbe65d17] user: jan.nijtmans branch: core-8-4-branch, size: 31000
2012-12-21
10:13
remove unnecessary struct names, which only pollute the "struct" namespace for the compiler. file: [d96f35464d] check-in: [7752ee08e3] user: jan.nijtmans branch: novem, size: 25265
2012-11-26
14:29
Removed functions marked deprecated or obsolete for a long time: Tcl_Backslash, Tcl_EvalFile, Tcl_GlobalEvalObj, Tcl_GlobalEval, Tcl_EvalTokens. Remove Tcl_FindExecutable from stub table: It is needed by embedders, not extenders. Remove TclpGetDate, TclpGmtime, TclpLocaltime: it isn't use anywhere since the new clock implementation. Remove TclWinConvertWSAError, it's the same as TclWinConvertError. file: [d7861d29f5] check-in: [6b2cf92413] user: jan.nijtmans branch: novem, size: 25274
2012-08-20
06:49
remove unnecessary struct names, which only pollute the "struct" namespace for te compiler. file: [9794211715] check-in: [db442914c7] user: jan.nijtmans branch: jn-no-struct-names, size: 32422
2012-04-23
13:17
make some more internal tables const file: [e074a62915] check-in: [7ac468debe] user: jan.nijtmans branch: core-8-5-branch, size: 35154
12:30
make some more internal tables const On cygwin, install dll's in /usr/bin, not in /usr/lib file: [6eb63e7b29] check-in: [6de689d796] user: jan.nijtmans branch: core-8-4-branch, size: 30998
2012-04-03
10:58
[Bug 3514475]: remove TclpGetTimeZone and TclpGetTZName file: [02debc5bec] check-in: [571970a62f] user: jan.nijtmans branch: bug-3514475, size: 32450
2011-08-15
08:22
[Bug 3388350] mingw64 compiler warnings file: [8badccca1d] check-in: [cef0f2ddb5] user: jan.nijtmans branch: core-8-4-branch, size: 30980
2011-03-02
20:27
Now that we're no longer using SCM based on RCS, the RCS Keyword lines cause more harm than good. Purged them (except in zlib files). file: [20f6863da5] check-in: [c64f310d38] user: dgp branch: trunk, size: 35144
16:06
Now that we're no longer using SCM based on RCS, the RCS Keyword lines cause more harm than good. Purged them. file: [3cc5b819d3] check-in: [79367df0f0] user: dgp branch: core-8-5-branch, size: 35136
2011-03-01
15:38
Now that we're no longer using SCM based on RCS, the RCS Keyword lines cause more harm than good. Purged them. file: [dd22a6b127] check-in: [90b4acd7bd] user: dgp branch: core-8-4-branch, size: 30980
2010-11-23
14:27
Jumps of win/ files. Fixed missing patches to configure. Jumped configure.in and tcl.m4. Also @578 file: [12521d0f3e] check-in: [1c930c462b] user: andreask branch: activestate-nre-excised-variant-1-roll-forward, size: 35215
2010-11-22
16:07
Next @380. OO Stacktraces broken. file: [5a15a0b941] check-in: [1713113dd4] user: andreask branch: activestate-nre-excised-variant-1-roll-forward, size: 35189
2010-06-07
17:36
rebranch from HEAD file: [06b8f923c1] check-in: [f3af08f468] user: rmax branch: rmax-ipv6-branch, size: 35220
2010-05-14
13:31
merge file: [e67e94062e] check-in: [384f57f831] user: dgp branch: dgp-refactor, size: 35220
2010-05-11
14:47
Unnecessary type casts, See Tcl [Patch #2997087] Don't duplicate CYGWIN timezone #define from tclPort.h in tclWinPort.h file: [19cd373c51] check-in: [b231748527] user: nijtmans branch: trunk, size: 35220
2010-01-13
18:47
merge updates from HEAD file: [c760a904ae] check-in: [e6c6ee7ccf] user: dgp branch: dgp-refactor, size: 35233
2010-01-10
22:58
* win/tclWinDde.c: VC++ 6.0 doesn't have * win/tclWinReg.c PDWORD_PTR * win/tclWinThrd.c: Fix various minor gcc warnings. * win/tclWinTime.c * win/tclWinConsole.c Put channel type definitions * win/tclWinChan.c in static const memory * win/tclWinPipe.c * win/tclWinSerial.c * win/tclWinSock.c * generic/tclIOGT.c * generic/tclIORChan.c * generic/tclIORTrans.c * unix/tclUnixChan.c * unix/tclUnixPipe.c * unix/tclUnixSock.c * unix/configure (regenerated with autoconf 2.59) * tests/info.test: Make test independant from tcltest implementation.
file: [2eeae1bedf] check-in: [ab99980096] user: nijtmans branch: trunk, size: 35233
2008-11-10
02:18
merge updates from HEAD file: [6521ef0758] check-in: [4a9c1325dc] user: dgp branch: dgp-refactor, size: 35194
2008-10-26
18:34
Style improvements - invoking callbacks without visual junk. file: [fa4faab5e1] check-in: [a1a8afc25d] user: dkf branch: trunk, size: 35189
2008-05-11
04:22
merge updates from HEAD file: [36e9dc25f9] check-in: [b084fd8e3a] user: dgp branch: dgp-refactor, size: 35211
2008-04-27
22:21
Get rid of pre-C89-isms (esp. CONST vs const). file: [a255ac6e0b] check-in: [2d205c22fb] user: dkf branch: trunk, size: 35206
2007-04-21
19:52
* generic/tclInt.decls: Yet another round of attempting * generic/tclInt.h: to get the correct type signature * unix/tclUnixPort.h: for TclpLocaltime and TclpGmtime. * unix/tclUnixTime.c: CONST TclpTime_t is a 'time_t *CONST' * win/tclWinTime.c: and not a 'CONST time_t*'! * generic/tclIntDecls.h: [Bug 1677275] * generic/tclIntPlatDecls.h: Regenerated. file: [b6843ea95d] check-in: [c109ead7b6] user: kennykb branch: core-8-4-branch, size: 31060
2006-09-26
21:40
* win/makefile.vc: Updated MSVC build to properly deal with * win/nmakehlp.c: MSVC8 and AMD64 target. Backport from 8.5 * win/rules.vc: * generic/tcl.h: Fixed stat definition for MSVC8 AMD64. * win/tclWinSock.c: Casting type police. * win/tclWinTime.c: file: [38a1d6ea10] check-in: [962a33862b] user: patthoyts branch: core-8-4-branch, size: 31062
2006-06-14
15:21
Enable building Tcl with Microsoft's latest compiler offering (VS2005). We have to handle a number of oddities as they have deprecated most of the standard C library and now generate manifest files to be linked into the binaries. SF bug #1424909 file: [fb74efc9ac] check-in: [f0865d186b] user: patthoyts branch: core-8-4-branch, size: 31053
2005-12-02
18:42
merge updates from HEAD file: [c860c95438] check-in: [1059d34b2b] user: dgp branch: dgp-refactor, size: 35212
2005-11-04
00:06
ANSIfy file: [309d4a8ab7] check-in: [eeb132b4ae] user: dkf branch: trunk, size: 35207
2005-11-03
17:52
merge updates from HEAD file: [2c9d0670db] check-in: [d827b9cf1e] user: dgp branch: dgp-refactor, size: 35360
00:17
Applied patch #1096916 to support building with MSVC 8. * generic/regerror.c: Avoid use of reserved word. * generic/tcl.h: Select the right Tcl_Stat structure * generic/tclDate.c: Casts to handle 64 bit time_t case. * tests/env.test: Include essential envvar on Win32 * win/nmakehlp.c: Handle new return codes. * win/makefile.vc: Use the selected options. * win/rules.vc: Check options are applicable * win/tclWinPort.h: Disable deprecated function warnings * win/tclWinSock.c: Provide default value to avoid warning. * win/tclWinTime.c: Add casts to handle 64bit time_t type.
file: [5c1b2fa09a] check-in: [58ba298c20] user: patthoyts branch: trunk, size: 35361
2005-08-02
18:14
merge updates from HEAD file: [1f8117bd34] check-in: [10feab7c07] user: dgp branch: kennykb-numerics-branch, size: 35318
2005-07-26
04:11
Merge updates from HEAD file: [d53143d39e] check-in: [8351a734a6] user: dgp branch: dgp-refactor, size: 35319
2005-07-24
22:56
Getting more systematic about style file: [ce398ea5af] check-in: [83d72c558c] user: dkf branch: trunk, size: 35314
2005-06-13
01:45
*** MERGE WITH HEAD *** (tag msofer-wcodes-20050611)
file: [779f501fc4] check-in: [d666b09ed5] user: msofer branch: msofer-wcodes-branch, size: 35735
2005-05-10
18:33
Merged kennykb-numerics-branch back to the head; TIPs 132 and 232 file: [034126a8ee] check-in: [1cc2336920] user: kennykb branch: trunk, size: 35732
2005-03-30
05:30
* win/tclWinTime.c (TclpGetDate): use time_t for 'time'
file: [5acd3263bd] check-in: [210fcf1532] user: hobbs branch: core-8-4-branch, size: 31008
2005-03-15
16:29
replaced 'long' times with wides, to cope with Win64 file: [021fac7efd] check-in: [d41af48065] user: kennykb branch: core-8-4-branch, size: 31025
2005-02-02
15:53
sync with head, add TclStrToD (TIP #132) file: [f1a684d395] check-in: [82ce6a0c40] user: kennykb branch: kennykb-numerics-branch, size: 35736
2005-01-24
21:43
merge updates from HEAD file: [96c3b96fd6] check-in: [3e37b6975d] user: dgp branch: dgp-refactor, size: 35732
2005-01-21
22:24
* generic/tclStubInit.c: Regenerated the stubs support code from * generic/tclDecls.h: the modified tcl.decls (TIP #233, see below).
* doc/GetTime.3: Implemented TIP #233, i.e. the * generic/tcl.decls: 'Virtualization of Tcl's Sense of Time'. * generic/tcl.h: Declared, implemented, and documented the * generic/tclInt.h: specified new API functions. Moved the * unix/tclUnixEvent.c: native (OS) access to time information * unix/tclUnixNotfy.c: into standard handler functions. Inserted * unix/tclUnixTime.c: hooks calling on the handlers where native * win/tclWinNotify.c: access was done before, and where scaling * win/tclWinTime.c: between domains (real/virtual) is required.
file: [8612f9bbb8] check-in: [8e9949daa2] user: andreas_kupries branch: trunk, size: 35740
2004-10-28
16:06
added CONST to TclpLocaltime and TclpGmtime param throughout file: [a2de3cb97b] check-in: [d3a95fedcf] user: kennykb branch: core-8-4-branch, size: 31028
2004-09-08
23:02
Merge updates from HEAD file: [c15c503d80] check-in: [dff8728918] user: dgp branch: dgp-refactor, size: 32308
2004-09-07
17:38
* generic/tclTimer.c: Removed a premature optimisation that attempted to store the assoc data in the client data; the optimisation caused a bug that after would overwrite its imports. [Bug 1016167] * library/clock.tcl (InitTZData, ClearCaches): Changed so that the in-memory time zone :UTC (and its aliases) always gets reinitialised, in case tzdata is absent. [Bug 1019537, 1023779] * library/tzdata/*: Regenerated. * tests/clock.test (clock-31.*, clock-39.1): Corrected a problem where the 'system' locale tests fail on a non-English Windows machine. [Bug 1023761]. Added a test to make sure that alias time zones load correctly. [Bug 1023779]. * tools/tclZIC.tcl (writeLinks): Corrected a problem where alias time zone names were written incorrectly, causing them to fail to load at run time. [Bug 1023779]. * win/tclWinTime.c (Tcl_GetTime): Eliminated CPUID tests on Win64 - assuming that HAL vendors now do a better job of keeping the performance counters synchronized among CPU's. [Bug 1020445] file: [502c92cf26] check-in: [58fb9afc44] user: kennykb branch: trunk, size: 32308
2004-06-05
17:31
* generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw build works again. * generic/tclDecls.h: Changes to the tests for * generic/tclInt.decls: clock frequency in * generic/tclIntDecls.h: Tcl_WinTime * generic/tclIntPlatDecls.h: so that any clock frequency * generic/tclPlatDecls.h: is accepted provided that * generic/tclStubInit.c: all CPU's in the system share * tests/platform.test (platform-1.3): a common chip, and hence, * win/tclWin32Dll.c (TclWinCPUID): presumably, a common clock. * win/tclWinTest.c (TestwincpuidCmd) This change necessitated a * win/tclWinTime.c (Tcl_GetTime): small burst of assembly code to read CPU ID information, which was added as TclWinCPUID in the internal Stubs. To test this code in the common case of a single-processor machine, a 'testwincpuid' command was added to tclWinTest.c, and a test case in platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for reporting this bug. [Bug #976722] file: [3375626930] check-in: [ac070357cf] user: kennykb branch: trunk, size: 32075
17:25
* generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw build works again. * generic/tclInt.decls: Changes to the tests for * generic/tclIntPlatDecls.h: clock frequency in Tcl_WinTime * generic/tclStubInit.c: so that any clock frequency * tests/platform.test (platform-1.3): is accepted provided that * win/tclWin32Dll.c (TclWinCPUID): all CPU's in the system share * win/tclWinTest.c (TestwincpuidCmd): a common chip, and hence, * win/tclWinTime.c (Tcl_GetTime): presumably, a common clock. This change necessitated a small burst of assembly code to read CPU ID information, which was added as TclWinCPUID in the internal Stubs. To test this code in the common case of a single-processor machine, a 'testwincpuid' command was added to tclWinTest.c, and a test case in platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for reporting this bug. [Bug #976722] file: [27ec6b8de9] check-in: [a45bf99c8e] user: kennykb branch: core-8-4-branch, size: 31016
2004-05-17
18:42
merge updates from HEAD file: [9399850955] check-in: [5741c7bde9] user: dgp branch: dgp-refactor, size: 31194
14:26
* generic/tclInt.decls: Restored TclpTime_t kludge to all * generic/tclIntPlatDecls.h: places where it appeared before the * unix/tclUnixPort.h changes of 14 May, because use of * unix/tclUnixTime.h native time_t in its place requires * win/tclWinTime.h: the 8.5 header reforms. [Bug #955146]
file: [2da068e0b2] check-in: [23544a04ac] user: kennykb branch: core-8-4-branch, size: 30136
2004-05-14
21:43
2004-05-14 Kevin B. Kenny <[email protected]>
* generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h:
* generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848]
* unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong.
* unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848]
* tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately.
* win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls.
file: [a94f5505d7] check-in: [44753d7a62] user: kennykb branch: trunk, size: 31194
21:41
2004-05-14 Kevin B. Kenny <[email protected]>
* generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h:
* generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848]
* unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong.
* unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848]
* tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately.
* win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls.
file: [1720c26bac] check-in: [27f78ca91b] user: kennykb branch: core-8-4-branch, size: 30057
2004-05-04
17:44
Merge updates from HEAD. file: [9758573804] check-in: [de9c64200c] user: dgp branch: dgp-refactor, size: 29612
2004-04-23
07:12
* win/tclWinTime.c: If the Tcl_ExitProc (StopCalibration) is called from the stack frame of DllMain's PROCESS_DETACH, the wait operation should timeout and continue. file: [d54c900752] check-in: [a611d2286e] user: davygrvy branch: trunk, size: 29613
2004-04-09
20:57
Merge updates from HEAD file: [b377bea237] check-in: [5b5c8133e5] user: dgp branch: dgp-refactor, size: 29467
2004-04-06
22:25
Patch 922727 committed. Implements three changes:
* generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only.
* generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same.
* win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
file: [18ec84213b] check-in: [2e5b18c85c] user: dgp branch: trunk, size: 29463
2004-03-26
22:28
Merge updates from HEAD. file: [1f83f16df1] check-in: [6e8d2d7ba1] user: dgp branch: dgp-refactor, size: 29470
2004-03-19
18:33
Made HEAD build on Windows VC++ again. file: [3ffd326c00] check-in: [6610e1aa01] user: kennykb branch: trunk, size: 29470
2004-03-18
18:55
* generic/tclIntDecls.h: Removed TclpTime_t. It wasn't really needed, * generic/tclInt.h: but caused warnings related to * generic/tclInt.decls: strict aliasing with GCC 3.3. * generic/tclClock.c: * generic/tclDate.c: * generic/tclGetDate.y: * win/tclWinTime.c: * unix/tclUnixTime.c: file: [eb1275c12c] check-in: [dab531a337] user: rmax branch: trunk, size: 29464
2004-02-07
05:47
Merge updates from HEAD

Note that this branch currently does not fully support the new {expand} syntax. Updates to TclEvalScriptTokens and TclCompileScriptTokens are still to come. file: [5e2ff1fde7] check-in: [beeeb45bbf] user: dgp branch: dgp-refactor, size: 29518

2003-12-16
02:55
* win/tclWinFile.c (TclpUtime) : utimbuf struct not a problem with Borland.
* win/tclWinTime.c (TclpGetDate) : Borland's localtime() has a slight behavioral difference.
From Helmut Giese <[email protected]> [Patch 758097].
file: [c815750671] check-in: [cf0b9606ba] user: davygrvy branch: trunk, size: 29519
2003-08-27
21:07
Merge updates from HEAD. file: [4706f55f26] check-in: [72cdb6ced3] user: dgp branch: dgp-refactor, size: 29074
19:50
* win/tclWinTime.c: Changed use of '_timezone' to 'timezone' as this difference is already adjusted for in tclWinPort.h. Removed unreferenced posixEpoch file-scope global.
file: [c989596096] check-in: [e915910e7e] user: davygrvy branch: trunk, size: 29075
2003-06-18
19:47
Merged in updates from the HEAD file: [a396c93935] check-in: [f146aedacd] user: dgp branch: dgp-refactor, size: 29143
2003-05-24
02:30
Add tests to detect and avoid division by zero in the windows precision timer calibration logic. file: [625eddbaaf] check-in: [7487febaec] user: drh branch: trunk, size: 29139
2003-05-18
19:48
* compat/strftime.c: Modified TclpStrftime to return its * generic/tclClock.c: result in UTF-8 encoding, and removed * mac/tclMacTime.c: the conversion from system encoding to * unix/tclUnixTime.c: UTF-8 from [clock format]. Needed to * win/tclWinTime.c: avoid double conversion of the timezone name on Windows systems. [Bug 624408]
file: [2fddb22d7e] check-in: [24ccf14ddd] user: kennykb branch: trunk, size: 28512
2003-04-15
21:06
Corrected use of types to make compilation compatible with VC++5. file: [75755a835a] check-in: [c8df52dce8] user: kennykb branch: core-8-4-branch, size: 28479
20:59
Corrected use of types to make compilation compatible with VC++5. file: [28512ec2d1] check-in: [09fd0557a0] user: kennykb branch: trunk, size: 28475
2003-04-14
02:36
* win/configure: Regen. * win/configure.in: Add check for FINDEX_INFO_LEVELS from winbase.h, known to be a problem in VC++ 5.2. Define HAVE_NO_FINDEX_ENUMS if the define does not exist. * win/tclWinFile.c: Put declarations for FINDEX_INFO_LEVELS and FINDEX_SEARCH_OPS inside a check for HAVE_NO_FINDEX_ENUMS so that these are not declared twice. This fixes the Mingw build. * win/tclWinTime.c: Rework the init of timeInfo so that the number or initializers matches the declaration. This was broken under Mingw. Add cast to avoid compile warning when calling the AccumulateSample function.
file: [ee169a1640] check-in: [1308c565b0] user: mdejong branch: trunk, size: 28370
2003-04-12
20:11
Fixed Bug 710310 (duplicate test numbers in clock.test). Made major changes to tclWinTime.c and related code to improve loop filter stability. file: [521ee0aaab] check-in: [e7634012a0] user: kennykb branch: core-8-4-branch, size: 28349
19:08
Implemented TIP #124 (clock clicks -microseconds and Tcl_WideInt return values). Fixed Bug 710310 (duplicate test numbers in clock.test). Made major changes to tclWinTime.c and related code to improve loop filter stability. file: [594abc890b] check-in: [7e064c61fe] user: kennykb branch: trunk, size: 28345
2003-02-14
22:16
* win/tclWinTime.c: Added code to test and compensate for forward leaps of the performance counter. See the MSDN Knowledge Base article Q274323 for the hardware problem that makes this necessary on certain machines.

* tests/winTime.test: Revised winTime-2.1 - it had a tolerance of thousands of seconds, rather than milliseconds. (What's six orders of magnitude among friends?

Both the above changes are triggered by a problem reported at http://aspn.activestate.com/ASPN/Mail/Message/ActiveTcl/1536811 although the developers find it difficult to believe that it accounts for the observed behavior and suspect a fault in the RTC chip. file: [27fec6433e] check-in: [5e2c269457] user: kennykb branch: trunk, size: 24966

2003-01-27
02:19
* win/configure: Regen. * win/configure.in: Add test that checks to see if the compiler can cast to a union type. * win/tclWinTime.c: Squelch compiler warning about union initializer by casting to union type when compiling with gcc.
file: [085168e970] check-in: [1acd5861be] user: mdejong branch: trunk, size: 24379
2002-11-26
22:35
* win/tclWinConsole.c: * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c: * win/tclWinThrd.c: * win/tclWinTime.c: General cleanup of all worker threads used by the channel drivers. Eliminates the normal case where the worker thread is terminated ('cept the winsock one). Instead, use kernel events to signal a clean exit. Only when the worker thread is blocked on an I/O call is the thread terminated. Essentially, this makes all other channel worker threads behave like the PipeReaderThread() function for it's cleaner exit behavior. This appears to fix [Bug 597924] but needs 3rd party confirmation to close the issue.
file: [2b275e4a48] check-in: [a2db2b4e4a] user: davygrvy branch: trunk, size: 24247
2002-10-09
23:57
* win/tclWinTime.c: Added code to set an exit handler that terminates the thread that calibrates the performance counter, so that the thread won't outlive unloading the Tcl DLL. [Tcl bug 620735].
file: [371dfffbe7] check-in: [b7618dfc58] user: kennykb branch: trunk, size: 24247
2002-06-10
05:33
Merging with TOT as of 06/09/2002. file: [5427865ce2] check-in: [73b68fb238] user: wolfsuit branch: macosx-8-4-branch, size: 22785
2002-04-01
20:44
Made tests for clock frequency more permissive to cope with Win98SE being observed to return 1.19318 in place of 1.193182 MHz as the performance counter frequency. file: [0056236336] check-in: [312ebab0f3] user: kennykb branch: trunk, size: 22781
2002-02-05
02:21
Merging with the current TOT. Very few conflicts, mostly in the generated files. file: [78916eb230] check-in: [f469a31a06] user: wolfsuit branch: macosx-8-4-branch, size: 22313
2001-11-21
02:36
added TIP#73 patch #483500 from Kevin Kenny. This deprecates TclpGetTime in favor of new Tcl_GetTime. file: [bede71815d] check-in: [ad0e26f63b] user: hobbs branch: trunk, size: 22306
2001-09-06
11:48
* win/tclWinTime.c: More Borland compatibility fixes. [Patch: 436116]
file: [d92fc7a80d] check-in: [be64ee41b5] user: davygrvy branch: trunk, size: 22309
2000-12-10
03:25
* win/tclWinTime.c (CalibrationThread): added lint return value to prevent compiler warning. [Bug #125005]
file: [053c13e5c9] check-in: [b79489f2bb] user: hobbs branch: trunk, size: 22271
2000-11-21
21:33
Applied the patch for TIP #7 from Kevin Kenny. See http://www.cs.man.ac.uk/fellowsd-bin/TIP/7.html file: [9c779b42f7] check-in: [3d13d2887f] user: andreas_kupries branch: trunk, size: 22246
2000-08-08
19:03
Deleted: Created branch tclpro-1-5-0-synthetic check-in: [e979569c4f] user: cvs2fossil branch: tclpro-1-5-0-synthetic, size: 0
1999-12-01
00:08
* win/tclWinTime.c: fixed handling of %Z on NT for time zones that don't have DST.
file: [05a1b1161a] check-in: [2aab86d6ee] user: hobbs branch: trunk, size: 9967
1999-04-21
00:42
Deleted: Added comments for 4/19 and 4/20 check-in: [6c6fc5d7b2] user: redman branch: scriptics-tclpro-1-2-old, size: 0
1999-04-16
00:46
merged tcl 8.1 branch back into the main trunk file: [93e2885f36] check-in: [f3b32fb71c] user: stanton branch: trunk, size: 9905
1999-04-06
00:29
* tests/winTime.test: * win/tclWinTime.c: Fixed crash in clock command that occurred when manipulating negative time values in timezones east of GMT. [Bug: 1142, 1458] file: [503694aea4] check-in: [0b5707f7e3] user: stanton branch: core-8-1-branch-old, size: 9909
1999-03-11
19:28
Deleted: Add documentation for Tcl_GetVersion() check-in: [940e47cf48] user: redman branch: scriptics-tclpro-1-2, size: 0
1999-03-10
06:49
Integrated stubs mechanism from 8.0 into 8.1 file: [68689d3ab0] check-in: [ddb86b8d93] user: stanton branch: core-8-1-branch-old, size: 9909
05:52
Merged stubs changes into mainline for 8.0 file: [3f7514c62a] check-in: [1969693351] user: stanton branch: trunk, size: 8002
1999-03-08
20:14
First pass at integrating stubs mechanism from 8.0. file: [9bb2728d4d] check-in: [eeba5fd9e9] user: stanton branch: dev-8-1-stubs-branch, size: 9913
1999-03-04
00:58
* unix/tclUnixTime.c: Added TclpGetDate and TclStrftime.

* win/tclWinTime.c: * unix/tclUnixTime.c: * mac/tclMacTime.c: * generic/tclDate.c: * generic/tclClock.c: Created a new opaque TclpTime_t type so generic functions that depend on the format of time_t can appear in the generic header files. file: [a228233b7c] check-in: [da995fce8e] user: stanton branch: dev-stubs-branch, size: 8006

1998-09-24
23:58
merging changes from 8.0.3 into 8.1a2 file: [395b86ebb4] check-in: [1c3c1ab19f] user: stanton branch: core-8-1-branch-old, size: 9871
1998-09-21
23:39
Added contents of Tcl 8.1a2 file: [78c5d66a5d] check-in: [8c56dc8868] user: stanton branch: core-8-1-branch-old, size: 9846
1998-09-14
18:39
Replaced SCCS strings, fixed binary files file: [27aaa84eab] check-in: [196f92fd17] user: stanton branch: trunk, size: 7963
1998-03-26
14:56
Added: Initial revision file: [f153124107] check-in: [f86c34e38d] user: rjohnson branch: trunk, size: 7941