mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 23:32:54 +08:00
Partially resolves issue #46 Use epoch milliseconds rather than seconds
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
#include <iostream>
|
||||
#include <ctime>
|
||||
|
||||
#ifdef WINDOWS
|
||||
// Import windows only stuff
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
// Support for OS X
|
||||
#ifdef __MACH__
|
||||
#include <mach/clock.h>
|
||||
@@ -20,6 +26,6 @@
|
||||
void getTime(timespec* time);
|
||||
double diffclock(timespec time1,timespec time2);
|
||||
|
||||
int getEpochTime();
|
||||
long getEpochTime();
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user