2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2018-09-18 09:11:08 +02:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cinttypes>
|
|
|
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
|
|
|
|
|
struct HwTimeStamps {
|
2018-08-30 13:37:39 +02:00
|
|
|
void initialize() {
|
|
|
|
|
GlobalStartTS = 0;
|
|
|
|
|
ContextStartTS = 0;
|
|
|
|
|
GlobalEndTS = 0;
|
|
|
|
|
ContextEndTS = 0;
|
|
|
|
|
GlobalCompleteTS = 0;
|
|
|
|
|
ContextCompleteTS = 0;
|
|
|
|
|
}
|
2018-09-04 09:05:55 +02:00
|
|
|
bool canBeReleased() const { return true; }
|
2017-12-21 00:45:38 +01:00
|
|
|
uint64_t GlobalStartTS;
|
|
|
|
|
uint64_t ContextStartTS;
|
|
|
|
|
uint64_t GlobalEndTS;
|
|
|
|
|
uint64_t ContextEndTS;
|
|
|
|
|
uint64_t GlobalCompleteTS;
|
|
|
|
|
uint64_t ContextCompleteTS;
|
|
|
|
|
};
|
2018-06-12 21:54:39 +02:00
|
|
|
} // namespace OCLRT
|