Kernel Time Functions (Most Likely)
I've never written Linux kernel code, but have for Windows. You need to find a kernel level time function. If Linux is anything like Windows, the time functions are more granular, but not as do everything as application-level time functions.
Hopefully someone knowledgeable about kernel development will answer this.