Replace system_clock with steady_clock.

This commit is contained in:
menglei.zhang
2025-10-31 16:09:06 -07:00
committed by Songyuan Bai
parent d3b620b1c8
commit 0ec074a511

View File

@@ -182,7 +182,7 @@ LogicalProcess::ProcessOneRound()
Time grantedTime =
Min(MtpInterface::GetSmallestTime() + m_lookAhead, MtpInterface::GetNextPublicTime());
auto start = std::chrono::system_clock::now();
auto start = std::chrono::steady_clock::now();
// process events
while (Next() <= grantedTime)
@@ -199,7 +199,7 @@ LogicalProcess::ProcessOneRound()
next.impl->Unref();
}
auto end = std::chrono::system_clock::now();
auto end = std::chrono::steady_clock::now();
m_executionTime = std::chrono::duration_cast<std::chrono::nanoseconds>(end - start).count();
}