wt_tsc.h

来自「it s very value.it can help you to learn」· C头文件 代码 · 共 20 行

H
20
字号
#ifndef TSC_H
#define TSC_H

/** <> I'm too lazy to read CPUID , I'm afraid this must be hard-coded **/

#define	PENTIUM			 	/** have you got a Pentium ? ***/
#define CPU_MHZ 	300		/** how big is your crystal ? **/

/** <> **/

#include <stdio.h>
#include <crblib/inc.h>

extern void startTSC(void);
extern double diffTSC(void);	// in seconds

extern void printTSC(double tsc, FILE *outF);

#endif

⌨️ 快捷键说明

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