diff --git a/onnxruntime/test/perftest/ort_test_session.cc b/onnxruntime/test/perftest/ort_test_session.cc index 99d186c1a7973..bc1f1f3f50a9b 100644 --- a/onnxruntime/test/perftest/ort_test_session.cc +++ b/onnxruntime/test/perftest/ort_test_session.cc @@ -49,7 +49,9 @@ std::chrono::duration OnnxRuntimeTestSession::Run() { } private: - Timer() = default; + Timer(std::chrono::high_resolution_clock::time_point start) : + start_(start) + {} }; auto timer = Timer::Start();