mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Remove ULT
Resolves: NEO-5711 Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2d1ef04100
commit
2ef41e4b18
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
* Copyright (C) 2017-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,28 +15,6 @@
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
TEST(TimerTest, WhenStartingEndingTimerThenDeltaInExpectedRange) {
|
||||
Timer::setFreq();
|
||||
Timer timer;
|
||||
|
||||
auto loopCount = 100u;
|
||||
|
||||
unsigned long long maxDelta = 0;
|
||||
unsigned long long minDelta = -1;
|
||||
|
||||
while (loopCount--) {
|
||||
timer.start();
|
||||
timer.end();
|
||||
unsigned long long currentDelta = timer.get();
|
||||
maxDelta = std::max(currentDelta, maxDelta);
|
||||
minDelta = std::min(currentDelta, minDelta);
|
||||
}
|
||||
|
||||
EXPECT_LE(minDelta, 10000u);
|
||||
//thread switch may cost up to 2s
|
||||
EXPECT_LE(maxDelta, 2000000000u);
|
||||
}
|
||||
|
||||
TEST(TimerTest, WhenGettingStartEndThenEndIsAfterStart) {
|
||||
|
||||
Timer::setFreq();
|
||||
|
||||
Reference in New Issue
Block a user