FreeBSD/sys/cddl/dev/dtrace/mips/dtrace_subr.c
/*
 * DTrace needs a high resolution time function which can
 * be called from a probe context and guaranteed not to have
 * instrumented with probes itself.
 *
 * Returns nanoseconds since boot.
 */
DTrace needs a high resolution time function which can
be called from a probe context and guaranteed not to have
instrumented with probes itself.

Returns nanoseconds since boot.
DTrace needs a high resolution time function which can be called from a probe context and guaranteed not to have instrumented with probes itself . Returns nanoseconds since boot .
uint64_t
dtrace_gethrtime()
{
	struct      timespec curtime;
	nanouptime(&curtime);
	return (curtime.tv_sec * 1000000000UL + curtime.tv_nsec);
}
uint64_t dtrace_gethrtime ( ) { struct timespec curtime ; nanouptime ( & curtime ) ; return ( curtime . tv_sec * 1000000000UL + curtime . tv_nsec ) ; }
DTrace needs a high resolution time function which can
 be called from a probe context and guaranteed not to have
 instrumented with probes itself.
DTrace needs a high resolution time function which can be called from a probe context and guaranteed not to have instrumented with probes itself .