windows-nt/Source/XPSP1/NT/com/oleutest/perf16/idata/client/stpwatch.h
2020-09-26 16:20:57 +08:00

29 lines
570 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __STOPWATCH_H
#define __STOPWATCH_H
#include "../syshead.h"
#include "../my3216.h"
class StopWatch_cl {
private:
static ULONG sm_TicksPerSecond;
LARGE_INTEGER m_liStart;
LARGE_INTEGER m_liStop;
enum em_STATES { ZEROED, RUNNING, STOPPED };
em_STATES m_State;
public:
StopWatch_cl();
void m_Zero();
BOOL m_ClassInit();
BOOL m_Start();
BOOL m_Stop();
BOOL m_Read(ULONG *);
BOOL m_ShowWindow(HWND);
BOOL m_Sleep(UINT);
};
#endif // __STOPWATCH_H