benchmarker.h

来自「一个解析数学表达式的c++程序」· C头文件 代码 · 共 18 行

H
18
字号
#ifndef _BENCHMARKER_INCLUDED
#define _BENCHMARKER_INCLUDED

// Benchmark Class template 
// You have to provide an implementation for the doWork method and
// the bench method will call it.  
class Benchmarker
{
public:

	virtual void beforeBench(){};
	virtual void doWork() = 0;

	bool bench(unsigned int minLoops, unsigned int &loops, unsigned int &elapsed);

};

#endif

⌨️ 快捷键说明

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