SWDEV-535070 - In windows 2 separate commands may not go back to back and hence actual time taken should be always more than expected but not necessary to be close. (#219)

This commit is contained in:
Patel, Jaydeepkumar
2025-07-08 15:55:49 +05:30
committed by GitHub
parent 2060125dfd
commit f94fe3c26c
+4
View File
@@ -53,8 +53,12 @@ bool verify_time_execution(float ratio, float time1, float time2, float expected
float expected_time2) {
bool test_status = false;
#if (HT_WIN == 1)
if (time1 > expected_time1 && time2 > expected_time2) {
#else
if (fabs(time1 - expected_time1) < (ratio * expected_time1) &&
fabs(time2 - expected_time2) < (ratio * expected_time2)) {
#endif
INFO("Succeeded: Expected Vs Actual: Kernel1 - " << expected_time1 << " Vs " << time1
<< ", Kernel2 - " << expected_time2 << " Vs "
<< time2);