feature: Add common Interface for timestamp in sysman

Related-To: LOCI-4511

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
This commit is contained in:
Mayank Raghuwanshi
2023-06-13 05:54:39 +00:00
committed by Compute-Runtime-Automation
parent b6e76b9118
commit 171e63409c
16 changed files with 35 additions and 94 deletions

View File

@@ -307,4 +307,9 @@ ze_result_t SysmanDevice::deviceSetEccState(zes_device_handle_t hDevice, const z
return pSysmanDevice->deviceSetEccState(newState, pState);
}
uint64_t SysmanDevice::getSysmanTimestamp() {
std::chrono::time_point<std::chrono::steady_clock> ts = std::chrono::steady_clock::now();
return std::chrono::duration_cast<std::chrono::microseconds>(ts.time_since_epoch()).count();
}
} // namespace L0