3 * @brief Common header includes
9 #define _POSIX_C_SOURCE 200809L
11 #define _XOPEN_SOURCE 600
13 /** Determine if we're running on the BBB **/
18 /** The current API version **/
36 /**Converts a timeval to a double**/
37 #define TIMEVAL_TO_DOUBLE(tv) ((tv).tv_sec + 1e-6 * ((tv).tv_usec))
38 /**Takes the tv1-tv2 between two timevals and returns the result as a double*/
39 #define TIMEVAL_DIFF(tv1, tv2) ((tv1).tv_sec - (tv2).tv_sec + 1e-6 * ((tv1).tv_usec - (tv2).tv_usec))