Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每次printk输出时,行首的方括号中会自动显示一个高分辨率的时间。如何printk以高分辨率获取当前时间?我还想在我的内核模块代码中获得如此高的分辨率时间。
printk
你应该使用getnstimeofday().
getnstimeofday()