mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 21:32:58 +08:00
Fixed clock timing on Windows.
Previously, clock timing was mocked out to 0. This fixes it and gives correct timings in ms for plate recognitions
This commit is contained in:
@@ -3,10 +3,17 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
// Support for OS X
|
||||
#ifdef __MACH__
|
||||
#include <mach/clock.h>
|
||||
#include <mach/mach.h>
|
||||
#endif
|
||||
|
||||
// Support for Windows
|
||||
#ifdef WINDOWS
|
||||
// Mock this out for Windows
|
||||
#define timespec int
|
||||
#include <windows.h>
|
||||
|
||||
#define timespec timeval
|
||||
#endif
|
||||
|
||||
void getTime(timespec* time);
|
||||
|
Reference in New Issue
Block a user