Files
compute-runtime/shared/source/os_interface/create_os_time_wddm.cpp
Mateusz Jablonski 4dfa12c8eb fix: add mechanism to detect gpu timestamp overflows
unify naming CpuGpu to GpuCpu

Related-To: NEO-8394
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-10-19 16:31:06 +02:00

22 lines
453 B
C++

/*
* Copyright (C) 2021-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/os_time.h"
#include "shared/source/os_interface/windows/os_time_win.h"
namespace NEO {
std::unique_ptr<OSTime> OSTime::create(OSInterface *osInterface) {
if (osInterface) {
return OSTimeWin::create(*osInterface);
}
return std::make_unique<OSTime>(std::make_unique<DeviceTime>());
}
} // namespace NEO