timing.h

来自「用于GPU通用计算的编程语言BrookGPU 0.4」· C头文件 代码 · 共 46 行

H
46
字号
#include <brook/brook.hpp>#ifdef _WIN32#include <windows.h>#endif#include <stdlib.h>#include <stdio.h>/* * main.h * *      Exports from main.cpp.  Pretty much infrastructure type functions *      (timing, logging, etc.) plus command line arguments. */#ifndef __MAIN_H_#define __MAIN_H_#ifdef WIN32typedef __int64 int64;#elsetypedef long long int64;#endifextern FILE * streamlog;extern brook::stream dummystr;extern void TallyKernel(const char *name,                        const brook::StreamInterface *in0,                        const brook::StreamInterface *in1=dummystr,                        const brook::StreamInterface *in2=dummystr,                        const brook::StreamInterface *in3=dummystr);extern int64 GetTime(void);extern unsigned int GetTimeMillis(void);extern int64 CyclesToUsecs(int64 cycles);unsigned int GetTimeMillis(void) ;void SetupMillisTimer(int argc, char ** argv);void CleanupMillisTimer(void);/* * XXX brcc currently has grief with typedefs mixed with Brook code, so we * just prototype all these here.  Since brcc runs before cpp, we sidestep * the issue.  I apologize deeply.  --Jeremy. */extern int64 start, mid, mid2, stop;#endif

⌨️ 快捷键说明

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