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.

25 lines
532 B

  1. class CTimeTracker
  2. {
  3. public:
  4. CTimeTracker(DWORD dwDefaultRate);
  5. ~CTimeTracker();
  6. void StartClock();
  7. void StopClock();
  8. void SetBytes(DWORD dwBytes, BOOL bAccumulate);
  9. DWORD GetBytesPerSecond();
  10. private:
  11. DWORD m_dwBytesSoFar;
  12. DWORD m_dwTicksSoFar;
  13. DWORD m_dwStartTick;
  14. DWORD m_defaultrate;
  15. DWORD m_ave;
  16. BOOL m_bTiming;
  17. UINT m_hasave;
  18. void AddEntry(DWORD dwmSec, DWORD dwBytes, BOOL bAccumulate);
  19. };