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.

35 lines
879 B

  1. /******************************Module*Header*******************************\
  2. * Module Name: timer.hxx
  3. *
  4. * For profiling
  5. *
  6. * Created: 13-Oct-1994 07:13:17
  7. * Author: Kirk Olynyk [kirko]
  8. *
  9. * Copyright (c) 1994-1999 Microsoft Corporation
  10. *
  11. \**************************************************************************/
  12. #if DBG
  13. #define TIMER_MEASURE 1
  14. class TIMER {
  15. public:
  16. LONGLONG llTick; // timer tick for this function
  17. char *psz; // string to be printed
  18. TIMER *pParent; // pointer to parent timer
  19. static char *pszRecordingFile; // zero if not recording to a file
  20. static TIMER *pCurrent; // pointer to current TIMER
  21. static FLONG fl; // useful flags
  22. TIMER(char *);
  23. ~TIMER();
  24. };
  25. #define MEASURE(name) TIMER UniqueTIMERVariableName(name)
  26. #else
  27. #define MEASURE(name)
  28. #endif