#include <linux/time.h>
void do_settimeofday (struct timeval *tv); //2.4内核
int do_settimeofday (struct timespec *tv); //2.6 内核
struct timepsec {
time_t tv_sec;
long tv_nsec; // 1/1,000,000,000
};
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |