🆕 clock()函数

This commit is contained in:
fslongjin
2022-07-12 13:20:01 +08:00
parent 7670031b11
commit da4867d662
9 changed files with 50 additions and 9 deletions

View File

@ -35,4 +35,11 @@ struct timespec
* @param rmtp 返回的剩余休眠时间
* @return int
*/
extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
/**
* @brief 获取当前的CPU时间
*
* @return uint64_t timer_jiffies
*/
extern uint64_t clock();