问题
I want to map the time taken through ktime_get()
at kernel space to something of the same unit from user space.
Is there any proc entry or any other source(at user level) which can be compared with ktime_get()?
回答1:
Use clock_gettime(CLOCK_MONOTONIC)
.
来源:https://stackoverflow.com/questions/27224325/ktime-get-equivalent-in-user-space