timer.h

来自「linux下的一个分组遗传算法」· C头文件 代码 · 共 35 行

H
35
字号
//// timer.h - A stopwatch//// author: J.I.v.Hemert// last updated : 29-09-1997//// This file implements the class TimerC.//#ifndef TIMER_H#define TIMER_H#ifdef Linux#include <sys/timeb.h>#endif#include <time.h>#include <fstream.h>class TimerC{	public:		void Reset ();		int GetTime ();		void Print (ofstream & stream);	private:		time_t start;};#endif// eof timer.h

⌨️ 快捷键说明

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