Changeset 6728 for trunk/src


Ignore:
Timestamp:
Sep 16, 2001, 9:27:25 PM (24 years ago)
Author:
phaller
Message:

Added support for new kernels with better timer granularity

Location:
trunk/src/winmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/os2timer.h

    r3600 r6728  
    1 /* $Id: os2timer.h,v 1.9 2000-05-24 01:56:25 phaller Exp $ */
     1/* $Id: os2timer.h,v 1.10 2001-09-16 19:27:24 phaller Exp $ */
    22
    33#ifndef __OS2TIMER_H__
     
    2323 ****************************************************************************/
    2424
    25 #define OS2TIMER_RESOLUTION_MINIMUM 32
     25 /* 2001-09-16 PH
     26  with the new OS2KRNL's dating 2001-09-14 and later, there is
     27  a special CLOCKSCALE feature added which allows for much finer
     28  granularity of the OS/2 system timers up to a maximum resolution
     29  of 2ms. This is supposed to be enough for most timing issues here.
     30 
     31  Note:
     32  we need to add support for dynamic detection of this feature.
     33  */
     34#define OS2TIMER_RESOLUTION_MINIMUM 2
    2635#define OS2TIMER_RESOLUTION_MAXIMUM 0x7ffffffe
    2736
  • trunk/src/winmm/time.cpp

    r6408 r6728  
    1 /* $Id: time.cpp,v 1.12 2001-07-30 10:19:54 sandervl Exp $ */
     1/* $Id: time.cpp,v 1.13 2001-09-16 19:27:25 phaller Exp $ */
    22
    33/*
     
    6464{
    6565  dprintf(("WINMM:timeGetDevCaps Not really Implemented\n"));
    66 
     66 
     67  /* 2001-09-16 PH
     68   add dynamic detection of OS/2's minimum timer resolution
     69   */
     70 
    6771  ptc->wPeriodMin = OS2TIMER_RESOLUTION_MINIMUM;
    6872  ptc->wPeriodMax = OS2TIMER_RESOLUTION_MAXIMUM;
Note: See TracChangeset for help on using the changeset viewer.