#ifndef _HRTIME_H_
#define _HRTIME_H_ 

// Portability function used in place of function call gethrtime and type
// hrtime_t for FreeBSD from SunOS.  These functions are available on SunOS.
// The replacement uses gettimeofday and timeval which suffer inaccuracies
// and other problems (see man).  


#ifndef SunOS
typedef long long hrtime_t; 	

hrtime_t gethrtime(void);
#endif

#endif


syntax highlighted by Code2HTML, v. 0.9.1