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.

63 lines
866 B

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. timer.h
  5. Abstract:
  6. Domain Name System (DNS) Server
  7. Wrap-proof timer routines.
  8. The purpose of this module is to create a timer function which
  9. returns a time in seconds and eliminates all timer wrapping issues.
  10. These routines are non-DNS specific and may be picked up
  11. cleanly by any module.
  12. Author:
  13. Jim Gilroy (jamesg) 9-Sep-1995
  14. Revision History:
  15. --*/
  16. #ifndef _TIMER_INCLUDED_
  17. #define _TIMER_INCLUDED_
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. BOOL
  22. InitializeSecondsTimer(
  23. VOID
  24. );
  25. VOID
  26. TerminateSecondsTimer(
  27. VOID
  28. );
  29. DWORD
  30. GetCurrentTimeInSeconds(
  31. VOID
  32. );
  33. __int64
  34. GetCurrentTimeInMilliseconds(
  35. VOID
  36. );
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif // _TIMER_INCLUDED_