Skip to content

Commit

Permalink
add constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheil Kumar committed Oct 30, 2023
1 parent e1d59a1 commit 99bd9f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onnxruntime/test/perftest/ort_test_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ std::chrono::duration<double> OnnxRuntimeTestSession::Run() {
}

private:
Timer() = default;
Timer(std::chrono::high_resolution_clock::time_point start) :

Check warning on line 52 in onnxruntime/test/perftest/ort_test_session.cc

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/test/perftest/ort_test_session.cc#L52

Single-parameter constructors should be marked explicit. [runtime/explicit] [5]
Raw output
onnxruntime/test/perftest/ort_test_session.cc:52:  Single-parameter constructors should be marked explicit.  [runtime/explicit] [5]
start_(start)
{}
};

auto timer = Timer::Start();
Expand Down

0 comments on commit 99bd9f2

Please sign in to comment.