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)

이 커밋은 다음에 포함됨:
Patel, Jaydeepkumar 작성하고 GitHub가 2025-07-08 15:55:49 +05:30를 커밋함
1 부모 2060125dfd
커밋 f94fe3c26c
1 파일이 변경됨
+4
+4
파일 보기
@@ -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);