From 3392d7fe509065b4ed56135c89fe7b6b6cb83fdb Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Wed, 17 Feb 2021 03:21:20 +0800 Subject: [PATCH] =?UTF-8?q?[libc][newlib]=E9=87=8D=E5=AE=9A=E4=B9=89CLOCKS?= =?UTF-8?q?=5FPER=5FSEC=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/newlib/machine/time.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 components/libc/compilers/newlib/machine/time.h diff --git a/components/libc/compilers/newlib/machine/time.h b/components/libc/compilers/newlib/machine/time.h new file mode 100644 index 0000000000..d46533eb39 --- /dev/null +++ b/components/libc/compilers/newlib/machine/time.h @@ -0,0 +1,12 @@ +#ifndef _MACHTIME_H_ +#define _MACHTIME_H_ + +#include +#define _CLOCKS_PER_SEC_ RT_TICK_PER_SECOND + +#ifdef __SPU__ +#include +int nanosleep (const struct timespec *, struct timespec *); +#endif + +#endif /* _MACHTIME_H_ */ -- GitLab