<i>MS-Win Time: QueryPerformanceFrequency does not return NULL since Win XP -> remove legacy code</i> status still Open with 5 other changes
by
.
D 2025-11-01T18:37:46.018
J comment Following\sthis\sdescription:\r\n\r\n[https://learn.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency]\r\n\r\nthe\scommand\s"QueryPerformanceFrequency"\snever\sretruns\sNULL\ssince\sWIndows\sXP.\r\nSo,\swe\scan\sassume\sfor\s9.1\sto\salways\sget\sa\snon-null.\r\n\r\nSome\scode\sin\stclWinTime.c\smay\sbe\sremoved.\r\n\r\nSame\sfor\sQueryPerformanceCounter\r\n[https://learn.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter]\r\n\r\nThanks,\r\nHarald
J icomment Implemented\sby\scheckin\s[7a350b5f95]\sstarting\sbranch\s[1238d4fd-mswin-queryperformancefrequency].\r\n\r\nIf\sI\srun\sthe\stimer.test\sfile,\sit\spanics\sin\sline\s780:\r\n[https://core.tcl-lang.org/tcl/file?udc=1&ln=on&name=win%2FtclWinTime.c&ln=780]\r\n(I\sdon't\sknow\show\sto\sshow\sa\sfile\sof\sa\sdistinct\sbranch,\sthis\sis\sapparently\sthe\slast\scommited\sbranch)\r\n\r\nI\shave\sadded\sthis\spanic,\sas\sthe\sdescription\ssays,\sthat\sthis\sshould\snever\shappen.\sOk.\r\n\r\nSorry,\sWizard\squestions\sfor\sSergey,\sJan,\sAshok:\r\n\r\n\s\s\s*\s\s\sIs\sthis\sgenerally\sa\sgood\sidea?\r\n\s\s\s*\s\s\sDo\swe\sstill\sneed\sthe\scalibration\sthread\swhich\sruns\seach\ssecond?\r\n\s\s\s*\s\s\sIs\sthe\sdeleted\spart\sabout\sPentium\s4\sreally\soutdated?\sLine\s470-505\sof\smain\sbranch.\r\n\r\nThanks\sfor\sall,\r\nHarald
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K 1238d4fdb0a41e6912b353a03732a001a1351850
U oehhar
Z 96a5f97f7aa1f1f8182cf1c7e0f29dcb