From 05eb9e5e6fd1da2af3b8d6ddd02c43cf310e1f4d Mon Sep 17 00:00:00 2001 From: JIe Date: Mon, 20 Jan 2025 16:39:18 +0800 Subject: [PATCH] =?UTF-8?q?get=5Ftime=5Fnow=20=E5=87=BD=E6=95=B0=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/toolkit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/toolkit.h b/include/toolkit.h index c34d417..828c724 100644 --- a/include/toolkit.h +++ b/include/toolkit.h @@ -110,7 +110,7 @@ namespace toolkit return std::round(value*temp)/temp; } - std::string get_time_now(){ + inline std::string get_time_now(){ auto time_now = std::chrono::system_clock::now(); auto now_c = std::chrono::system_clock::to_time_t(time_now); char buffer[32];