From 08b471072dd8a0f723525a4ab084d345b95f16cc Mon Sep 17 00:00:00 2001 From: mayunteng_1 Date: Wed, 26 Oct 2022 11:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=8E=B7=E5=8F=96=E6=94=B9?= =?UTF-8?q?=E4=B8=BAsteady=5Fclock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mayunteng_1 Change-Id: Ic381d8bdb162bf1bbe05b3486590e3e0a414e765 --- util/common/src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/common/src/util.cpp b/util/common/src/util.cpp index 308b94c25f..366aa9e2d8 100644 --- a/util/common/src/util.cpp +++ b/util/common/src/util.cpp @@ -72,7 +72,7 @@ int64_t GetSysClockTime() int64_t GetMillisTime() { - auto timeNow = std::chrono::time_point_cast(std::chrono::system_clock::now()); + auto timeNow = std::chrono::time_point_cast(std::chrono::steady_clock::now()); auto tmp = std::chrono::duration_cast(timeNow.time_since_epoch()); return tmp.count(); } -- Gitee