博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux printf获得时间戳
阅读量:4061 次
发布时间:2019-05-25

本文共 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/

你可能感兴趣的文章
OS + Unix HP-UX
查看>>
OS + Unix Solaris / openSolaris
查看>>
db sql montior
查看>>
Unix + SCO UnixWare
查看>>
db db2 books
查看>>
read humor_campus
查看>>
my read_soft
查看>>
my pdfs
查看>>
framework Schedule Quartz
查看>>
db db2 soft
查看>>
OS + Linux books
查看>>
db SQL Server error_list
查看>>
db oracle books
查看>>
IBM WebSphere Commerce backend_dev_exp
查看>>
IBM WebSphere introduction
查看>>
java http / Cache / Protocol / Client / Session / Cokie / Status / HttpClient
查看>>
IBM WebSphere Commerce backend dev
查看>>
script js base
查看>>
java books
查看>>
project docment_tools VSS / CVS / SVN / ClearCase / Hudson / GIT
查看>>