/* Public domain. */ #ifndef _LINUX_SCHED_CLOCK_H #define _LINUX_SCHED_CLOCK_H #include #include #include static inline uint64_t local_clock(void) { struct timespec ts; nanouptime(&ts); return (ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec; } #endif