Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-18937

Timer resolution compatibility shim

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Postponed
    • Trivial
    • None
    • None
    • None

    Description

      Windows 95/98/ME timeGetTime has a resolution of 1 ms and on Windows NT/2000/XP this same function has a resolution of 10 ms. The compatibility mode of Windows XP (NT in general) gets the behavior wrong and fails to adjust the default timer resolution in it's "Windows 95" and "Windows 98 / ME" modes. This issue be seen in WinXP_W95Compat.png and ROS.png whereas the correct behavior is shown in Win98.png.

      The attached time_resolution.patch corrects this issue by adding a new shim called "DefaultTimerResolution1ms" and assigning it to the "Windows 95" and "Windows 98 / ME" profiles. The results can be seen in ROS_W95_W98MECompat.png where the counter doesn't stagnate for a long time and then increment by 10.

      Attachments

        1. ROS_W95_W98MECompat.png
          ROS_W95_W98MECompat.png
          35 kB
        2. ROS.png
          ROS.png
          45 kB
        3. time_resolution.patch
          4 kB
        4. Win98.png
          Win98.png
          3 kB
        5. WinXP_W95Compat.png
          WinXP_W95Compat.png
          56 kB

        Activity

          People

            Unassigned Unassigned
            -Tom- -Tom-
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: