.
D 2017-03-31T19:00:03.378
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment This\scan\sbe\sseen\sas\sthe\samendment\sfor\s[b87ad7e9146832d505f9a430d779c5313c440256]\r\n\r\nThe\sshort\sdescription:\r\n\r\nBy\sNRT\s(near\sreal-time)\sdevelopment\sunder\swindows,\sI\sget\sseveral\sissues\swith\sdrifting\sof\sthe\s[clock\smicroseconds]\setc.\sback,\sthat\slooks\slike:\r\n\r\n\s\sclock\smicroseconds\s->\s1490985783769193\r\n\s\sclock\smicroseconds\s->\s1490985783769191\r\n\r\nAdditionally\sI've\sown\sclock\sextension\swith\s"nanoseconds",\swhere\sthis\sis\smore\scritical\sand\svery\sannoying:\r\n\s\sclock\snanoseconds\s->\s1490985425627129800\r\n\s\sclock\snanoseconds\s->\s1490985425627128400\r\n\r\nThis\sgoes\sto\sthe\scalibration\scycle,\swhere\sthe\snew\scombination\sof\sfileTimeLastCall,\scurCounterFreq\sand\sperfCounterLastCall\sbreaks\sthe\sforward\srunning\sof\sthe\snative\svirtual\sclock.\r\n\r\nI've\sfixed\sit\sfor\stcl8.5\sbranch\s(merge-able\sto\s8.6\sand\strunk),\ssolution\scoming\ssoon...\r\n\r\nJust\sas\sreminder\sfor\sme\s(excerpt\sof\slog-message\sof\sthe\sfix):\r\n```\r\nSHA-1:\sa746f0501229a4a76e3c9a3825c55dbe9c8c3cdf\r\n\r\n*\soptimized\scalibration\scycle\s(makes\sTcl\sfor\swindows\s"RTS"\sresp.\sNRT-capable):\r\n\s\s-\sthe\sclock\sticks\snever\sbackwards\s(avoid\sit\sby\snegative\sdrifts\susing\scomparison\sof\stimes\sbefore\sand\safter\scalibration);\r\n\s\s-\smore\sprecise,\ssmooth/soft\sdrifting\s(avoids\stoo\slarge\sdrifts,\salready\safter\s10\siterations\sthe\sdrift\sgets\sfewer\sas\s0.1\smicroseconds);\r\n\s\s-\sbecause\sof\smore\saccurate\sdrifting\s(aspire\sto\sthe\ssmallest\sdifference),\swe\scan\sprolong\scalibration\sinterval\s(up\sto\s10\sseconds\sby\ssmall\stdiff-value);\r\n```
J is_private 0
J login sebres
J priority 5\sMedium
J resolution None
J severity Severe
J status Open
J submitter sebres
J subsystem 03.\sTimer\sEvents
J title [win32]\sNRT-only\s-\sNativeGetTime\sbackwards\stime-drifts\sbug\s(fixed)
J type Bug
K b7b707a310ea42e9f1b29954ee8ca13ae91ccabe
U sebres
Z 99a888e4c71d98f1fe263fd0ca7c8603