stopwatch.h

来自「My (so called) HiP compression algorithm」· C头文件 代码 · 共 45 行

H
45
字号
/*****************************************************************************

  StopWatch
  ---------

  Interface, based on the GetTickCount API, to log time elapses.

  by yoda

  WWW:      y0da.cjb.net
  E-mail:   LordPE@gmx.net

  You are allowed to use this class in your own projects if you keep this
  trademark.

*****************************************************************************/

#pragma once

#include <windows.h>

//
// CStopWatch class
//
class CStopWatch
{
public:
	CStopWatch(void);
	~CStopWatch(void);

	void    Start();
	void    Stop();

	DWORD   GetMSeconds();
	DWORD   GetSeconds();
	DWORD   GetMinutes();

	DWORD   GetTimeMSeconds();
	DWORD   GetTimeSeconds();
	DWORD   GetTimeMinutes();

private:
	DWORD   dwStartTime, dwEndTime;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?