summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
Commit message (Collapse)AuthorAgeFilesLines
* Space before tab is an extremely unlikely to be correct indentation patterndkf2024-06-041-1/+1
|
* Update Tcl_Time for 32-bit systems and win64, being able to handle time > ↵jan.nijtmans2023-08-241-1/+1
| | | | 2038. Suggested in in ticket [86dd172271]
* Merge 8.7jan.nijtmans2023-03-241-1/+1
|\
| * Merge 8.6jan.nijtmans2023-03-241-2/+2
| |\
| | * Fix [15e74a2fe6]: Fix various typosjan.nijtmans2023-03-241-2/+2
| | |
* | | Merge 8.7jan.nijtmans2022-10-101-6/+6
|\ \ \ | |/ /
* | | Merge 8.7jan.nijtmans2022-02-211-3/+4
|\ \ \ | |/ /
| * | Merge 8.6jan.nijtmans2022-02-211-2/+2
| |\ \ | | |/
| | * Fix [fb4a0a6675]: signed integer overflow in TclpGetClicks()jan.nijtmans2022-02-211-2/+2
| | |
* | | Clean up the notifier code to not spread the hooks quite so widelydkf2021-04-031-25/+41
|\ \ \ | |/ /
| * | Refactoring, ahoydkf2021-03-301-17/+34
| | |
* | | Change (internal) signatures for TclpGetClicks/TclpGetSeconds to use ↵jan.nijtmans2021-02-181-8/+8
| | | | | | | | | | | | "unsigned long long" in stead of Tcl_WideUInt as return value.
* | | Merge 8.7 (resolve conflicts)dgp2021-01-081-7/+7
|\ \ \ | |/ /
| * | Omit -Wdeclaration-after-statement from CFLAGS: No longer needed since we ↵jan.nijtmans2021-01-081-7/+7
| | | | | | | | | | | | | | | 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.
* | | Merge 8.7jan.nijtmans2020-12-081-1/+1
|\ \ \ | |/ /
| * | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | | | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | | merge 8.7dgp2020-03-091-6/+3
|\ \ \ | |/ /
| * | TCL_UNUSED in the unix sources.dgp2020-03-091-8/+4
| | |
* | | Merge 8.7jan.nijtmans2020-02-281-2/+5
|\ \ \ | |/ /
| * | Mark more unused parametersjan.nijtmans2019-09-031-1/+4
| | |
| * | Merge tip-548jan.nijtmans2019-08-291-3/+4
| |\ \
| * \ \ Merge tip-548 (since using the *WChar* functions leads to less type-casts in ↵jan.nijtmans2019-08-031-1/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | c++) Als finish implementaton for MacOSX
| | * | | Improvement: always export both 16-bit and 32-bit UTF functionjan.nijtmans2019-07-051-1/+0
| | | | |
| * | | | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-2/+2
| |/ / /
* | | | Merge 8.7jan.nijtmans2019-08-231-1/+1
|\ \ \ \ | | |/ / | |/| |
| * | | Merge 8.6jan.nijtmans2019-08-231-2/+2
| |\ \ \ | | | |/ | | |/| | | | | 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
| | * | Fix [8566dc22f9]: various spelling fixes in commentsjan.nijtmans2019-08-221-2/+2
| | |\ \
| | | * | Fix [8566dc22f9]: various spelling fixes in commentsjan.nijtmans2019-08-221-2/+2
| | | | |
| | | * | back-ported branch sebres-8-6-timerate (new command "timerate" for 8.5)sebres2017-05-161-0/+71
| | | |\ \
* | | | \ \ Merge 8.7jan.nijtmans2019-08-021-1/+0
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Document that the *Backslash parsing functions output maximum 4 bytes, ↵jan.nijtmans2019-08-021-1/+0
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | irrespectable of the TCL_UTF_MAX setting: It could be 4 for the "\Uxxxxxx" construct, but never more. Move <stddef.h> and <locale.h> to tclInt.h, so the can be removed from various other places.
* | | | | Merge 8.7jan.nijtmans2019-03-071-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Merge 8.6. Remove unneeded code from init.tcljan.nijtmans2019-03-071-1/+1
| |\ \ \ \ | | |/ / /
| | * | | Fix some gcc/MSVC (harmless) compiler warnings. Remove some unnecessary ↵jan.nijtmans2019-03-071-1/+1
| | | |/ | | |/| | | | | | | | | end-of-line spacing
* | | | merge 8.7 (TIP#527, New measurement facilities in TCL: New command timerate, ↵sebres2019-03-051-0/+71
|\ \ \ \ | |/ / / | | | | | | | | performance test suite)
| * | | merge 8.6 (TIP#527, New measurement facilities in TCL: New command timerate, ↵sebres2019-03-051-0/+71
| |\ \ \ | | |/ / | | | | | | | | performance test suite)
* | | | Merge 8.7jan.nijtmans2018-12-111-3/+1
|\ \ \ \ | |/ / / | | | | | | | | In test-cases, don't load Tcltest package if it isn't actually used. Another round of size_t related improvements. Nothing functional. Also improve some comments.
* | | | Merge 8.7. jan.nijtmans2018-09-051-8/+8
|\ \ \ \ | |/ / / | | | | Change some internal function signatures, accounting for the 64-bit era.
* | | | Tcl-9 huge cleanup: Remove many unused internal functions which do nothing ↵jan.nijtmans2017-11-081-202/+0
|/ / / | | | | | | | | | more than occupy the internal stub table.
* | | Merge core-8-6-branch. This removes the work currently being done in ↵jan.nijtmans2017-06-021-71/+0
|\ \ \ | | | | | | | | | | | | | | | | "sebres-8-6-clock-speedup-cr1" branch, but that will be merged again as soon as the work is done. All other changes in "trunk" since then (e.g. the INST_STR_CONCAT1 performance improvement, and the removal of SunOS-4) are retained.
* \ \ \ merge core-8-6-branch (except: the "timerate" command and the clock ↵jan.nijtmans2017-05-311-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | performance-tests are kept)
| * | | | More code review, e.g. use Tcl_SetObjResult in stead of Tcl_SetResult, ↵jan.nijtmans2017-05-311-1/+1
| | |/ / | |/| | | | | | | | | | preventing a (char *) type case. No functional changes.
| * | | back-ported branch sebres_trunk_timerate (new command "timerate" for 8.6)sebres2017-05-091-0/+71
| |\ \ \ | | |/ / | |/| |
| * | | Merge bug_b87ad7e914sebres2017-01-091-1/+1
| |\ \ \ | | | |/ | | |/|
* | | | merge trunk (to sebres-trunk-timerate)sebres2017-05-111-0/+7
|\ \ \ \ | |_|_|/ |/| | |
| * | | If compiled with TCL_NO_DEPRECATED, the functions ↵jan.nijtmans2017-04-061-0/+7
| | | | | | | | | | | | | | | | TclpGetDate/TclpLocaltime/TclpGmtime can be removed: They are internal and not used for anything any more.
* | | | [timerate] bug fix: missing scale conversion by Mac OSX on platform where ↵sebres2017-02-091-0/+71
|/ / / | | | | | | | | | | | | | | | | | | 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)
* | | Merge bug_b87ad7e914sebres2017-01-091-1/+1
|\ \ \ | | |/ | |/|
| * | Fix for [b87ad7e9146832d505f9a430d779c5313c440256|b87ad7e914], rebased to ↵jan.nijtmans2017-01-091-1/+1
| |\ \ | | | | | | | | | | | | | | | | 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)
| | * | [win] bug fix in NativeGetTime: each call of it blurs current performance ↵sebres2017-01-021-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | 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