Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6 KiB

  1. //**************************************************************************
  2. //
  3. // TIMER.H -- Xena Gaming Project
  4. //
  5. // Version 3.XX
  6. //
  7. // Copyright (c) 1997 Microsoft Corporation. All rights reserved.
  8. //
  9. // @doc
  10. // @header TIMER.H | Global includes and definitions for timing functions
  11. //**************************************************************************
  12. #ifndef __TIMER_H__
  13. #define __TIMER_H__
  14. //---------------------------------------------------------------------------
  15. // Definitions
  16. //---------------------------------------------------------------------------
  17. #define T1 100
  18. #define T2 845
  19. #define T3 410
  20. #define ONE_MILLI_SEC 1000
  21. #define TWO_MILLI_SECS 2000
  22. #define THREE_MILLI_SECS 3000
  23. #define FOUR_MILLI_SECS 4000
  24. #define FIVE_MILLI_SECS 5000
  25. #define SIX_MILLI_SECS 6000
  26. #define SEVEN_MILLI_SECS 7000
  27. #define EIGHT_MILLI_SECS 8000
  28. #define NINE_MILLI_SECS 9000
  29. #define TEN_MILLI_SECS 10000
  30. //---------------------------------------------------------------------------
  31. // Procedures
  32. //---------------------------------------------------------------------------
  33. ULONG
  34. TIMER_GetTickCount (VOID);
  35. NTSTATUS
  36. TIMER_Calibrate (VOID);
  37. ULONG
  38. TIMER_CalibratePort (
  39. IN PGAMEPORT PortInfo,
  40. IN ULONG Microseconds
  41. );
  42. ULONG
  43. TIMER_GetDelay (
  44. IN ULONG Microseconds
  45. );
  46. VOID TIMER_DelayMicroSecs (
  47. IN ULONG Delay
  48. );
  49. //===========================================================================
  50. // End
  51. //===========================================================================
  52. #endif __TIMER_H__