| Last change
 on this file since 998 was             907, checked in by Steven Levine, 18 years ago | 
        
          | 
Avoid out of memory traps in Compare DirectoriesRework Compare Directories progress display for 2 second update rate
 Start refactoring to reduce dependence on fm3dll.h
 Add timer services (IsITimerExpired etc.)
 
 | 
        
          | File size:
            792 bytes | 
      
      
| Rev | Line |  | 
|---|
| [907] | 1 |  | 
|---|
|  | 2 | /*********************************************************************** | 
|---|
|  | 3 |  | 
|---|
|  | 4 | $Id: $ | 
|---|
|  | 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.