本文共 272 字,大约阅读时间需要 1 分钟。
linux 的demsg中出的LOG会有一个时间刻度,计算相对时间还好
#include <linux/time.h>
struct timeval
do_gettimeofday kernel space API
gettimeofday user space API
driver中的printf用了do_gettimeofday(*timeval)
printf(%ld)
struct timespec
#include <linux/time.h>
struct timespec current_kernel_time(void);
转载地址:http://mobji.baihongyu.com/