#include <linux/time.h> unsigned long mktime (unsigned int year, unsigned int mon, unsigned int day, unsigned int hour, unsigned int min, unsigned int sec); #include <linux/time.h> void do_gettimeofday(struct timeval *tv); #include <linux/time.h> struct timespec current_kernel_time(void);
|
mktime转换年月日时间到一个 jiffies 值
do_gettimeofday精度接近毫秒的精度,不晚于下一个时钟嘀哒
current_kernel_time精度,虽以纳秒来表示, 只有时钟嘀哒的粒度
阅读(966) | 评论(0) | 转发(0) |