Commit 8554bc58 authored by Hans Petter Selasky's avatar Hans Petter Selasky
Browse files

Implement ktime_get_raw() function in the LinuxKPI.

MFC after:	1 week
Submitted by:	Johannes Lundberg <johalun0@gmail.com>
Sponsored by:	Mellanox Technologies
Sponsored by:	Limelight Networks
parent d901abf1
......@@ -189,6 +189,15 @@ ktime_get_real_seconds(void)
return (ts.tv_sec);
}
static inline ktime_t
ktime_get_raw(void)
{
struct timespec ts;
nanotime(&ts);
return (timespec_to_ktime(ts));
}
static inline u64
ktime_get_raw_ns(void)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment