mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 11:16:50 +08:00
23 lines
327 B
C++
23 lines
327 B
C++
#ifndef TIMING_H
|
|
#define TIMING_H
|
|
|
|
#include <iostream>
|
|
|
|
// Support for OS X
|
|
#ifdef __MACH__
|
|
#include <mach/clock.h>
|
|
#include <mach/mach.h>
|
|
#endif
|
|
|
|
// Support for Windows
|
|
#ifdef WINDOWS
|
|
#include <windows.h>
|
|
|
|
#define timespec timeval
|
|
#endif
|
|
|
|
void getTime(timespec* time);
|
|
double diffclock(timespec time1,timespec time2);
|
|
|
|
#endif
|