18 #define NSEC_PER_SEC 1000000000 22 #define SEC_PER_NSEC 1.e-9 26 #include <mach/mach_time.h> 29 #define MACNANO (+1.0E-9) 30 #define MACGIGA UINT64_C(1000000000) 33 extern double eTimebase;
34 extern uint64_t eTimestart;
49 void TimeDiff(
struct timespec start,
struct timespec end,
struct timespec* diff);
double TimeToSec(struct timespec time)
size_t GetTimeAbsoluteStr(char *ptr)
int GetTimeMonotonic(struct timespec *time)
uint64_t TimeToNSec(struct timespec time)
int GetTimeCurrent(struct timespec *time)
void TimeDiff(struct timespec start, struct timespec end, struct timespec *diff)