linux ns级定时器_转载_Linux下的hrtimer高精度定时器的使用
hrtimer高精度定时器的interval由ktime_set(const long secs, const unsigned long nsecs)决定,可做到ns级。此处的例子为5ms interval:#include#include#include#includeMODULE_LICENSE("GPL");staticstructhrtimerhr_timer;staticst...