1.Linux内核获取系统时间
#include <linux/time.h>
#define PANEL_DEBUG(fmt, args...) printk(KERN_EMERG "%s(IVANSUN) LINE[%d] "fmt , __FUNCTION__, __LINE__, ##args);
struct timeval now;
do_gettimeofday(&now);
PANEL_DEBUG("tv.tv_sec = %ld, tv.tv_usec = %ld\n", now.tv_sec, now.tv_usec);