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
25 lines
532 B
|
|
|
|
|
|
class CTimeTracker
|
|
{
|
|
public:
|
|
CTimeTracker(DWORD dwDefaultRate);
|
|
~CTimeTracker();
|
|
|
|
void StartClock();
|
|
void StopClock();
|
|
void SetBytes(DWORD dwBytes, BOOL bAccumulate);
|
|
DWORD GetBytesPerSecond();
|
|
|
|
private:
|
|
DWORD m_dwBytesSoFar;
|
|
DWORD m_dwTicksSoFar;
|
|
DWORD m_dwStartTick;
|
|
DWORD m_defaultrate;
|
|
DWORD m_ave;
|
|
BOOL m_bTiming;
|
|
UINT m_hasave;
|
|
void AddEntry(DWORD dwmSec, DWORD dwBytes, BOOL bAccumulate);
|
|
};
|
|
|