mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 23:32:54 +08:00
Added timing fixes for Visual Studio 2015
This commit is contained in:
@@ -5,18 +5,20 @@
|
||||
#include <ctime>
|
||||
#include <stdint.h>
|
||||
|
||||
#if WINDOWS
|
||||
struct timespec
|
||||
{
|
||||
time_t tv_sec; // Seconds - >= 0
|
||||
long tv_usec; // Nanoseconds - [0, 999999999]
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef WINDOWS
|
||||
// Import windows only stuff
|
||||
#include <windows.h>
|
||||
|
||||
#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 <sys/time.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user