Files
compute-runtime/shared/source/os_interface/create_os_time_drm.cpp
Dunajski, Bartosz 31154dc20b Create OS agnostic OSTime in AUB/TBX mode
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2023-02-02 14:35:26 +01:00

23 lines
562 B
C++

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