2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-01-31 21:35:46 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2018-09-18 15:11:08 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
#pragma once
|
2020-01-31 21:35:46 +08:00
|
|
|
#include "core/os_interface/windows/os_time_win.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
class MockOSTimeWin : public OSTimeWin {
|
|
|
|
public:
|
|
|
|
MockOSTimeWin(OSInterface *osInterface) : OSTimeWin(osInterface){};
|
2018-02-19 22:04:03 +08:00
|
|
|
|
|
|
|
void overrideQueryPerformanceCounterFunction(decltype(&QueryPerformanceCounter) function) {
|
|
|
|
this->QueryPerfomanceCounterFnc = function;
|
|
|
|
}
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
void setFrequency(LARGE_INTEGER frequency) {
|
|
|
|
this->frequency = frequency;
|
|
|
|
}
|
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|