Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5d701a74e5fc65dc427621377f0599dbcbe85ff5
Ticket: b7b707a310ea42e9f1b29954ee8ca13ae91ccabe
[win32] NRT-only - NativeGetTime backwards time-drifts bug (fixed)
User & Date: sebres on 2017-03-31 20:53:49
Changes

  1. icomment:
    As example below small excerpt with DEBUG-output of the calibration thread:
    
    ```
    *****[30F4]***** 1490992535186529 ** tdiff **-1965, 14909925351865281, 14909925351867246
    *****[30F4]***** before 14909925351870010, 14909925351870010
    *****[30F4]***** after  14909925351870009, 14909925351870010, diff: -1 / 0
    *****[30F4]***** 1490992535187944, [10] ** cfreq == 3117204, nfreq == 3117441, perfc == 2031595984296
    *****[30F4]***** 1490992545326460 ** tdiff **-2006, 14909925453264590, 14909925453266596
    *****[30F4]***** before 14909925469160412, 14909925469160412
    *****[30F4]***** after  14909925469160386, 14909925469160412, diff: -26 / 0
    *****[30F4]***** 1490992546917626, [10] ** cfreq == 3117209, nfreq == 3117441, perfc == 2031627592529
    *****[30F4]***** 1490992556043572 ** tdiff **-2206, 14909925560435703, 14909925560437909
    *****[30F4]***** before 14909925560441189, 14909925560441189
    *****[30F4]***** after  14909925560441188, 14909925560441189, diff: -1 / 0
    *****[30F4]***** 1490992556045267, [10] ** cfreq == 3117203, nfreq == 3117441, perfc == 2031660999997
    *****[30F4]***** 1490992566183518 ** tdiff **-2089, 14909925661835170, 14909925661837259
    *****[30F4]***** 1490992566184086, [10] ** cfreq == 3117205, nfreq == 3117441, perfc == 2031692608269
    *****[30F4]***** 1490992576323403 ** tdiff **-2587, 14909925763234022, 14909925763236609
    *****[30F4]***** before 14909925763238690, 14909925763238690
    *****[30F4]***** after  14909925763238689, 14909925763238690, diff: -1 / 0
    *****[30F4]***** 1490992576324574, [10] ** cfreq == 3117182, nfreq == 3117441, perfc == 2031724216370
    *****[30F4]***** 1490992586463519 ** tdiff **-786, 14909925864635173, 14909925864635959
    *****[30F4]***** 1490992586464045, [10] ** cfreq == 3117256, nfreq == 3117441, perfc == 2031755824954
    ```
    
    Legend:
      tdiff  : current deviation from virtual time (vt0) to the file-time (in 100-ns);
      before : nt0, nt0 -  virtual time before calibration;
      after  : nt1, nt1c - virtual time after calibration and correction 
               (nt1c = vt0 + (nt0-nt1));
      diff   : -26 / 0 - difference without and with correction;
      [10]   : current calibration interval (10 seconds)
      cfreq  : calculated frequency;
      nfreq  : nominal frequency;
      perfc  : last performance counter;
    
  2. login: "sebres"
  3. mimetype: "text/plain"