My user space driver need to call a function:
clock_get_calendar_microtime(¤tTime_sec,¤tTime_usec);
I hope Xcode DriverKit library can include "kern/clock.h"
My user space driver need to call a function:
clock_get_calendar_microtime(¤tTime_sec,¤tTime_usec);
I hope Xcode DriverKit library can include "kern/clock.h"
CLOCK_REALTIME 0 ==> System-wide real-time clock. This clock is supported by all implementations and returns the number of seconds and nanoseconds since the Epoch.
Type of a clock value from clock_gettime_nsec_np(CLOCK_REALTIME). Equivalent to a value from gettimeofday() in nanoseconds.
==> clock_get_calendar_microtime(¤tTime_sec, ¤tTime_usec)