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:
Matt Hill
2014-02-17 13:21:47 -07:00
parent 50b831df43
commit 742556cc37
2 changed files with 87 additions and 12 deletions

View File

@@ -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);