Source code of Windows XP (NT5)
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.

40 lines
644 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. PERFHELP.H
  5. Abstract:
  6. History:
  7. --*/
  8. #ifndef __HOWLONG__H_
  9. #define __HOWLONG__H_
  10. #include <wbemutil.h>
  11. class CHowLong
  12. {
  13. protected:
  14. DWORD m_dwStart;
  15. LPWSTR m_wszText1;
  16. LPWSTR m_wszText2;
  17. int m_n;
  18. public:
  19. CHowLong(LPWSTR wszText1 = L"", LPWSTR wszText2 = L"", int n = 0)
  20. : m_wszText1(wszText1), m_wszText2(wszText2), m_n(n)
  21. {
  22. m_dwStart = GetTickCount();
  23. }
  24. ~CHowLong()
  25. {
  26. DEBUGTRACE((LOG_WBEMCORE,"%S (%S, %d) took %dms\n", m_wszText1, m_wszText2, m_n,
  27. GetTickCount() - m_dwStart));
  28. }
  29. };
  30. #endif