内核态usleep

This commit is contained in:
fslongjin
2022-07-18 21:19:45 +08:00
parent 16d6b94c46
commit e7fb6df203
3 changed files with 32 additions and 1 deletions

View File

@ -37,6 +37,14 @@ struct timespec
*/
extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
/**
* @brief 睡眠指定时间
*
* @param usec 微秒
* @return int
*/
extern int usleep(useconds_t usec);
/**
* @brief 获取当前的CPU时间
*