1 #ifndef __PHIOTMRC_H__ 2 #define __PHIOTMRC_H__ 3 4 #include<stddef.h> /* size_t */ 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 double phiotmrc (void); 10 11 #ifdef __INTEL_COMPILER 12 typedef size_t phioTime; 13 #else 14 typedef struct timespec phioTime; 15 #endif 16 void phastaio_time(phioTime* t); 17 size_t phastaio_time_diff(phioTime* start, phioTime* end); 18 void phastaio_setCyclesPerMicroSec(); 19 #ifdef __cplusplus 20 } 21 #endif 22 23 #endif // __PHIOTMRC_H__ 24