Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 37dced9f48dc93348a5dd2a375eff36dd9280025cce98b0b10995c4c1887307b
Ticket: 1238d4fdb0a41e6912b353a03732a001a1351850
MS-Win Time: QueryPerformanceFrequency does not return NULL since Win XP -> remove legacy code
User & Date: oehhar on 2025-11-01 18:37:46
Changes

  1. comment changed to:
    Following this description:
    
    [https://learn.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency]
    
    the command "QueryPerformanceFrequency" never retruns NULL since WIndows XP.
    So, we can assume for 9.1 to always get a non-null.
    
    Some code in tclWinTime.c may be removed.
    
    Same for QueryPerformanceCounter
    [https://learn.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter]
    
    Thanks,
    Harald
    
  2. icomment:
    Implemented by checkin [7a350b5f95] starting branch [1238d4fd-mswin-queryperformancefrequency].
    
    If I run the timer.test file, it panics in line 780:
    [https://core.tcl-lang.org/tcl/file?udc=1&ln=on&name=win%2FtclWinTime.c&ln=780]
    (I don't know how to show a file of a distinct branch, this is apparently the last commited branch)
    
    I have added this panic, as the description says, that this should never happen. Ok.
    
    Sorry, Wizard questions for Sergey, Jan, Ashok:
    
       *   Is this generally a good idea?
       *   Do we still need the calibration thread which runs each second?
       *   Is the deleted part about Pentium 4 really outdated? Line 470-505 of main branch.
    
    Thanks for all,
    Harald
    
  3. login: "oehhar"
  4. mimetype: "text/x-fossil-wiki"
  5. username: "oehhar"