Commit f3cf8f2c by Nick Hynes Committed by Lianmin Zheng

Fix clock type in rpc_session timer (#2362)

* Fix clock type in rpc_session timer

* Fix lint error
parent a64d81fa
......@@ -1205,7 +1205,8 @@ PackedFunc WrapTimeEvaluator(PackedFunc pf,
DeviceAPI::Get(ctx)->StreamSync(ctx, nullptr);
for (int i = 0; i < repeat; ++i) {
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> tbegin, tend;
std::chrono::time_point<
std::chrono::high_resolution_clock, std::chrono::nanoseconds> tbegin, tend;
double duration_ms = 0.0;
do {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment