/* */ #ifndef D_A2TIME_H #define D_A2TIME_H #include #include #include #ifndef HAVE_LOCALTIME_R #include "localtime_r.h" #endif // HAVE_LOCALTIME_R #ifndef HAVE_GETTIMEOFDAY #include "gettimeofday.h" #endif // HAVE_GETTIMEOFDAY #ifndef HAVE_STRPTIME #include "strptime.h" #endif // HAVE_STRPTIME #ifndef HAVE_TIMEGM #include "timegm.h" #endif // HAVE_TIMEGM #ifndef HAVE_ASCTIME_R #include "asctime_r.h" #endif // HAVE_ASCTIME_R #ifdef __MINGW32__ #define suseconds_t uint64_t #endif #ifndef HAVE_A2_STRUCT_TIMESPEC #include "timespec.h" #endif // !HAVE_A2_STRUCT_TIMESPEC // Rounding error in millis constexpr auto A2_DELTA_MILLIS = std::chrono::milliseconds(10); #endif // D_A2TIME_H