【发布时间】:2011-12-09 08:17:58
【问题描述】:
这两个功能哪个更好
#include <time.h>
int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp);
或
#include <time.h>
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
【问题讨论】:
-
定义“好”。便携、高效、知名、易懂、准确,什么什么什么?
-
您阅读手册页了吗? linux.die.net/man/3/clock_nanosleep
-
@SanJacinto 没有人阅读手册页。就像我问你“你读过 Facebook 服务条款了吗?”或者一个机械师问你“你读过用户手册吗?”当你不知道为什么你的远光灯不能工作时 =P
标签: c linux linux-kernel system-calls