From b6ac35fed3988737a2af5e73a156a097be2cbdb5 Mon Sep 17 00:00:00 2001 From: Ori Levari Date: Wed, 27 Jan 2021 15:52:35 -0800 Subject: [PATCH] use tickcount64 (#6447) Co-authored-by: Ori Levari --- winml/test/concurrency/ConcurrencyTests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winml/test/concurrency/ConcurrencyTests.cpp b/winml/test/concurrency/ConcurrencyTests.cpp index 66fe02a6f9..d84b46fcce 100644 --- a/winml/test/concurrency/ConcurrencyTests.cpp +++ b/winml/test/concurrency/ConcurrencyTests.cpp @@ -216,8 +216,8 @@ void MultiThreadMultiSessionOnDevice(const LearningModelDevice& device) { for (unsigned i_thread = 0; i_thread < NUM_THREADS; ++i_thread) { LearningModelSession &model_session = modelSessions[i_thread]; pool.SubmitWork([&model_session,&ivfs,&max_indices,&max_values,tolerance,i_thread]() { - DWORD start_time = GetTickCount(); - while (((GetTickCount() - start_time) / 1000) < NUM_SECONDS) { + ULONGLONG start_time = GetTickCount64(); + while (((GetTickCount64() - start_time) / 1000) < NUM_SECONDS) { auto j = i_thread % ivfs.size(); auto input = ivfs[j]; auto expected_index = max_indices[j]; @@ -282,8 +282,8 @@ void MultiThreadSingleSessionOnDevice(const LearningModelDevice& device) { try { for (unsigned i = 0; i < NUM_THREADS; ++i) { pool.SubmitWork([&model_session, &ivfs, &max_indices, &max_values, tolerance, i]() { - DWORD start_time = GetTickCount(); - while (((GetTickCount() - start_time) / 1000) < NUM_SECONDS) { + ULONGLONG start_time = GetTickCount64(); + while (((GetTickCount64() - start_time) / 1000) < NUM_SECONDS) { auto j = i % ivfs.size(); auto input = ivfs[j]; auto expected_index = max_indices[j];