compute-runtime/shared/source/os_interface/windows/os_time_win.h

33 lines
801 B
C
Raw Normal View History

/*
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_time.h"
#include "shared/source/os_interface/windows/gfx_escape_wrapper.h"
#include "shared/source/os_interface/windows/windows_wrapper.h"
namespace NEO {
class Wddm;
class OSTimeWin : public OSTime {
public:
OSTimeWin(OSInterface &osInterface);
bool getCpuTime(uint64_t *timeStamp) override;
double getHostTimerResolution() const override;
uint64_t getCpuRawTimestamp() override;
static std::unique_ptr<OSTime> create(OSInterface &osInterface);
protected:
LARGE_INTEGER frequency;
OSTimeWin() = default;
decltype(&QueryPerformanceCounter) QueryPerfomanceCounterFnc = QueryPerformanceCounter;
};
} // namespace NEO