Files
compute-runtime/unit_tests/os_interface/windows/mock_os_time_win.h
kamdiedrich 0fff56b656 Move wddm files to core folder
Change-Id: I28cb7ee6f63275e5b44697e22259023354b9311e
2020-01-31 20:10:01 +01:00

24 lines
564 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/os_interface/windows/os_time_win.h"
namespace NEO {
class MockOSTimeWin : public OSTimeWin {
public:
MockOSTimeWin(OSInterface *osInterface) : OSTimeWin(osInterface){};
void overrideQueryPerformanceCounterFunction(decltype(&QueryPerformanceCounter) function) {
this->QueryPerfomanceCounterFnc = function;
}
void setFrequency(LARGE_INTEGER frequency) {
this->frequency = frequency;
}
};
} // namespace NEO