source: trunk/dll/tmrsvcs.h@ 1201

Last change on this file since 1201 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
Line 
1
2/***********************************************************************
3
4 $Id: tmrsvcs.h 1201 2008-09-11 12:51:33Z jbs $
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
21typedef 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
29VOID InitITimer(ITIMER_DESC *pitd, UINT interval_msec);
30BOOL IsITimerExpired(ITIMER_DESC *pitd);
31VOID SleepIfNeeded(ITIMER_DESC *pitd, UINT sleepTime);
32
33#endif // TMRSVCS_H
Note: See TracBrowser for help on using the repository browser.