SWDEV-395279 - Move the headers needed to compile perftests in hip-tests (#322)
Change-Id: I9e8cea9d2cd08fb17d8955696b83404dc24a9d2b
Dieser Commit ist enthalten in:
committet von
GitHub
Ursprung
d33ccb3569
Commit
b14648cc31
@@ -0,0 +1,28 @@
|
||||
#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_
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren