Merge pull request #4345 from mysterywolf/clock

[libc][newlib]重定义CLOCKS_PER_SEC宏
This commit is contained in:
Bernard Xiong 2021-02-17 12:30:09 +08:00 committed by GitHub
commit 9bfab03b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#ifndef _MACHTIME_H_
#define _MACHTIME_H_
#include <rtconfig.h>
#define _CLOCKS_PER_SEC_ RT_TICK_PER_SECOND
#ifdef __SPU__
#include <sys/_timespec.h>
int nanosleep (const struct timespec *, struct timespec *);
#endif
#endif /* _MACHTIME_H_ */