Data
HOME >
RESOURCES >
Data
35
example2
HRYU  
2009.10.09  
5333
|
---|
inline void checkTimeWin(double &perform, double &time, int tiker, const char *msg)
{ // from http://blog.tinywolf.com/33
// input checkTimeWin(performance, time);
INT64 freq; INT64 cnt;
// if(tiker==0) { printf("CPU timer start : %s
", msg);}
QueryPerformanceFrequency((LARGE_INTEGER*)&freq);
QueryPerformanceCounter((LARGE_INTEGER*)&cnt);
double now = (double)cnt / (double)freq;
perform = now - time;
time = now;
if(tiker==1) {printf("CPU timer end : %10.7f sec %s
", perform, msg);}
}
------------------------------------------------
#include |
Comment
List
37 | 2009.10.27 | |
36 | 2009.10.23 | |
35 | 2009.10.09 | |
34 | 2009.09.25 | |
33 | 2009.09.19 |