2016-09-05 19:47:26 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-05 19:47:26 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 16:44:05 +00:00
|
|
|
#ifndef _TIMER_H
|
|
|
|
#define _TIMER_H
|
2016-09-05 19:47:26 +00:00
|
|
|
|
2017-12-26 13:09:30 +00:00
|
|
|
#if defined(__APPLE__) && defined(MISSING_CLOCK_GETTIME)
|
2017-12-26 12:49:17 +00:00
|
|
|
#include <sys/time.h>
|
|
|
|
#include <mach/clock.h>
|
|
|
|
#include <mach/mach.h>
|
|
|
|
#include <mach/mach_time.h>
|
|
|
|
#endif
|
|
|
|
|
2016-10-01 10:55:39 +00:00
|
|
|
void hc_timer_set (hc_timer_t *a);
|
|
|
|
double hc_timer_get (hc_timer_t a);
|
2016-09-06 16:44:05 +00:00
|
|
|
|
|
|
|
#endif // _TIMER_H
|