?? timer.h
字號:
//////////////////////////////////////////////////////////////////////////////////////////
// TIMER.h
// timer class
// Downloaded from: www.paulsprojects.net
// Created: 20th July 2002
//
// Copyright (c) 2006, Paul Baker
// Distributed under the New BSD Licence. (See accompanying file License.txt or copy at
// http://www.paulsprojects.net/NewBSDLicense.txt)
//////////////////////////////////////////////////////////////////////////////////////////
#ifndef TIMER_H
#define TIMER_H
#include <windows.h>
#include <mmsystem.h>
class TIMER
{
public:
TIMER() : isPaused(false)
{ Reset(); }
~TIMER() {}
void Reset();
double GetTime();
void Pause();
void Unpause();
protected:
bool isPaused;
double pauseTime;
double startTime;
};
#endif //TIMER_H
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -