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.

28 lines
570 B

  1. #ifndef __STOPWATCH_H
  2. #define __STOPWATCH_H
  3. #include "../syshead.h"
  4. #include "../my3216.h"
  5. class StopWatch_cl {
  6. private:
  7. static ULONG sm_TicksPerSecond;
  8. LARGE_INTEGER m_liStart;
  9. LARGE_INTEGER m_liStop;
  10. enum em_STATES { ZEROED, RUNNING, STOPPED };
  11. em_STATES m_State;
  12. public:
  13. StopWatch_cl();
  14. void m_Zero();
  15. BOOL m_ClassInit();
  16. BOOL m_Start();
  17. BOOL m_Stop();
  18. BOOL m_Read(ULONG *);
  19. BOOL m_ShowWindow(HWND);
  20. BOOL m_Sleep(UINT);
  21. };
  22. #endif // __STOPWATCH_H
  23.