#ifndef OPENALPR_TIMING_H #define OPENALPR_TIMING_H #include #include #include #ifdef WINDOWS // Import windows only stuff #include #if _MSC_VER < 1900 struct timespec { time_t tv_sec; // Seconds - >= 0 long tv_nsec; // Nanoseconds - [0, 999999999] }; #else //#define timespec timeval #endif #else #include #endif // Support for OS X #ifdef __MACH__ #include #include #endif namespace alpr { void getTimeMonotonic(timespec* time); int64_t getTimeMonotonicMs(); double diffclock(timespec time1,timespec time2); int64_t getEpochTimeMs(); } #endif