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.

15 lines
265 B

  1. #pragma once
  2. #include "windows.h"
  3. class Timer {
  4. public:
  5. HANDLE mCurrentThread;
  6. LARGE_INTEGER mStart;
  7. LARGE_INTEGER mEnd;
  8. LARGE_INTEGER mCPUFrequency;
  9. DWORD_PTR mProcessAffinityMask;
  10. Timer();
  11. void Start();
  12. int GetPassedTickers();
  13. float GetPassedTime();
  14. };