#include <stdio.h> #include <sys/time.h> #include "hrtime.h" #ifndef SunOS hrtime_t gethrtime(void) { //hrtime_t result; timeval t; gettimeofday(&t, NULL); return (hrtime_t)(t.tv_sec * 1e9 + t.tv_usec * 1e3); } #endif