/*
 * Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
 *
 * SPDX-License-Identifier: MIT
 */

#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_
