| Last change
 on this file since 1418 was             1201, checked in by John Small, 17 years ago | 
        
          | 
Ticket 187: Set properties and improve comments
 | 
        
          | 
              
Property                 svn:eolstyle
 set to                 native
Property                 svn:keywords
 set to                 Id | 
        
          | File size:
            790 bytes | 
      
      
| Rev | Line |  | 
|---|
| [907] | 1 |  | 
|---|
|  | 2 | /*********************************************************************** | 
|---|
|  | 3 |  | 
|---|
| [1201] | 4 | $Id: tmrsvcs.h 1201 2008-09-11 12:51:33Z jbs $ | 
|---|
| [907] | 5 |  | 
|---|
|  | 6 | Timing services interface | 
|---|
|  | 7 |  | 
|---|
|  | 8 | Copyright (c) 2008 Steven H. Levine | 
|---|
|  | 9 |  | 
|---|
|  | 10 | 05 Jan 08 SHL Baseline | 
|---|
|  | 11 |  | 
|---|
|  | 12 | ***********************************************************************/ | 
|---|
|  | 13 |  | 
|---|
|  | 14 | #if !defined(TMRSVCS_H) | 
|---|
|  | 15 | #define TMRSVCS_H | 
|---|
|  | 16 |  | 
|---|
|  | 17 | #if !defined(OS2_INCLUDED) | 
|---|
|  | 18 | #include <os2.h> | 
|---|
|  | 19 | #endif | 
|---|
|  | 20 |  | 
|---|
|  | 21 | typedef struct { | 
|---|
|  | 22 | INT remaining;                // Remaining counts until time check | 
|---|
|  | 23 | UINT estimated;               // Estimated counts per interval | 
|---|
|  | 24 | UINT misses; | 
|---|
|  | 25 | UINT interval_msec;           // msec per interval | 
|---|
|  | 26 | ULONG start_msec;             // Last tick time | 
|---|
|  | 27 | } ITIMER_DESC; | 
|---|
|  | 28 |  | 
|---|
|  | 29 | VOID InitITimer(ITIMER_DESC *pitd, UINT interval_msec); | 
|---|
|  | 30 | BOOL IsITimerExpired(ITIMER_DESC *pitd); | 
|---|
|  | 31 | VOID SleepIfNeeded(ITIMER_DESC *pitd, UINT sleepTime); | 
|---|
|  | 32 |  | 
|---|
|  | 33 | #endif // TMRSVCS_H | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.