From 721c08dc61974adf8d929f909ccc5ce4d6c9598a Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 23 Oct 2022 21:27:56 -0400 Subject: [PATCH] =?UTF-8?q?[libc][time]=20=E8=A7=A3=E5=86=B3=E9=83=A8?= =?UTF-8?q?=E5=88=86=E7=BC=96=E8=AF=91=E5=B9=B3=E5=8F=B0CLOCKS=5FPER=5FSEC?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=A2=AB=E9=87=8D=E6=96=B0=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/common/include/sys/time.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/libc/compilers/common/include/sys/time.h b/components/libc/compilers/common/include/sys/time.h index 8a4dbb68f3..346320bff0 100644 --- a/components/libc/compilers/common/include/sys/time.h +++ b/components/libc/compilers/common/include/sys/time.h @@ -24,6 +24,9 @@ typedef __time64_t time_t; extern "C" { #endif +#undef CLOCKS_PER_SEC +#define CLOCKS_PER_SEC RT_TICK_PER_SECOND + /* timezone */ #define DST_NONE 0 /* not on dst */ #define DST_USA 1 /* USA style dst */ -- GitLab