Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4fbfa2964341e8af6ae19c19b221029e04178d54
Ticket: 1353858fffffffffffffffffffffffffffffffff
windows: timing granularity is poor on many systems
User & Date: matt-newman on 2005-11-11 11:32:42
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Since the switch to using Perf counters timing below 10ms has been 
    seriously impacted - many of the machines we us fair the tests, 
    causing a fallback to the old method which was always 10ms or 
    worse. But this problem has been compounded for explicit sleeps in 
    Tcl_Sleep, since before that would work correctly, but now it loops 
    until the time is right, which if you are limited to 10ms granularity 
    means a Tcl_Sleep(1) might take anywhere from 11 to 20 or so ms. 
    to complete.
    
    After researching this it is clear (to me at least) that the PerfCounter 
    apporach, whilst seemingly attractive is quite flawed - esp. on MP 
    machines.
    
    The attached diffs change the approach to use the multi-media 
    timers with are not subject to OEM vagraties and on all the modern 
    systems I have access to (which is quite a few!) seem to work well.
    
    We have been using this patch in production for over three months 
    with only good results :-)
    
    Matt
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "matt-newman"
  9. subsystem changed to: "None"
  10. title changed to:
    windows: timing granularity is poor on many systems
    
  11. type changed to: "Patch"