7105a89a51
git-subtree-dir: projects/hip-tests git-subtree-mainline:cc7a96c46fgit-subtree-split:5ce508401e
29 строки
380 B
C++
29 строки
380 B
C++
#ifndef _TIMER_H_
|
|
#define _TIMER_H_
|
|
|
|
#ifdef _WIN32
|
|
typedef __int64 i64 ;
|
|
#endif
|
|
#ifdef __linux__
|
|
typedef long long i64;
|
|
#endif
|
|
|
|
class CPerfCounter {
|
|
|
|
public:
|
|
CPerfCounter();
|
|
~CPerfCounter();
|
|
void Start(void);
|
|
void Stop(void);
|
|
void Reset(void);
|
|
double GetElapsedTime(void);
|
|
|
|
private:
|
|
|
|
i64 _freq;
|
|
i64 _clocks;
|
|
i64 _start;
|
|
};
|
|
|
|
#endif // _TIMER_H_
|