Overview
| Artifact ID: | cb8fe8d657922b455b1482b59d20c6a8a6591f58 |
|---|---|
| Ticket: | b7b707a310ea42e9f1b29954ee8ca13ae91ccabe
[win32] NRT-only - NativeGetTime backwards time-drifts bug (fixed) |
| User & Date: | sebres on 2017-03-31 19:00:03 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
This can be seen as the amendment for [b87ad7e9146832d505f9a430d779c5313c440256] The short description: By NRT (near real-time) development under windows, I get several issues with drifting of the [clock microseconds] etc. back, that looks like: clock microseconds -> 1490985783769193 clock microseconds -> 1490985783769191 Additionally I've own clock extension with "nanoseconds", where this is more critical and very annoying: clock nanoseconds -> 1490985425627129800 clock nanoseconds -> 1490985425627128400 This goes to the calibration cycle, where the new combination of fileTimeLastCall, curCounterFreq and perfCounterLastCall breaks the forward running of the native virtual clock. I've fixed it for tcl8.5 branch (merge-able to 8.6 and trunk), solution coming soon... Just as reminder for me (excerpt of log-message of the fix): ``` SHA-1: a746f0501229a4a76e3c9a3825c55dbe9c8c3cdf * 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); ```
- is_private changed to: "0"
- login: "sebres"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "sebres"
- subsystem changed to: "03. Timer Events"
- title changed to:
[win32] NRT-only - NativeGetTime backwards time-drifts bug (fixed)
- type changed to: "Bug"