mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Dates corrected in copyright headers to reflect original publication date (2018 for OpenCL, 2020 for Level Zero). Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
38 lines
494 B
C++
38 lines
494 B
C++
/*
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <type_traits>
|
|
|
|
namespace NEO {
|
|
|
|
class Timer {
|
|
public:
|
|
Timer();
|
|
Timer(const Timer &) = delete;
|
|
|
|
~Timer();
|
|
|
|
void start();
|
|
|
|
void end();
|
|
|
|
long long int get();
|
|
|
|
long long getStart();
|
|
long long getEnd();
|
|
|
|
Timer &operator=(const Timer &t);
|
|
|
|
static void setFreq();
|
|
|
|
private:
|
|
class TimerImpl;
|
|
TimerImpl *timerImpl;
|
|
};
|
|
}; // namespace NEO
|