Artifacts Associated With Ticket 7e47f55993
Ticket change [6549447cdf] (rid 248310) by oehhar on 2025-11-15 10:07:56:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
I am still reading the MS-Windows Win32 API documentation. This documentation proposes to use the function GetSystemTimePreciseAsFileTime() for UTC based high resolution time: https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemtimepreciseasfiletime Would that be a replacement for the MS-Win Tcl_Time() implementation featuring an own calibration thread. The comments in TCL why this is required reference Pentium 4 processors and Windows SE. I already asked a similar question [1238d4fdb0] where the answer was, that the old API is still required for Windows 8 (even if documented as superseeded in Windows XP). Thanks for any light, Harald
- foundin initialized to: "main"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "06. Time Measurement"
- title initialized to:
MS-Win Time: why not use GetSystemTimePreciseAsFileTime()
- type initialized to: "RFE"
Ticket change [aa65638826] (rid 248312) by apnadkarni on 2025-11-15 11:13:28:
- icomment:
I am a little confused here. Isn't the calibration thread required for measuring time intervals? The GetSystemTimePreciseAsFileTime function returns UTC based time which would not be the same thing, would it? (monotonicity, leap seconds if they have not been banned yet etc.)
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [d5e7d2d91b] (rid 248314) by oehhar on 2025-11-15 12:50:28:
- icomment:
It is used for Tcl_GetTime(). The resulting time intervals are between two wall clock moments. So, one monotonic second may be plus or minus one hour, if the wall clock jumps by +/- 1 hour between the diff calls. The use of Tcl_GetTime() for time intervals (like the time command or interp limit) is IMHO a miss-use. Thanks for all, Harald
- login: "oehhar"
- mimetype: "text/plain"
- icomment: