view include/Clock.h @ 150:ebbfb154351a ClockSync

Now leveraging BBB's lock between xenomai clock and audio clock for ultra-accurate, low-latency clocking. CAVEAT: fractions of samples drifts will occurr every time the clock is changed
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 22 Sep 2015 04:09:13 +0100
parents 53e3c0a3295d
children
line wrap: on
line source
#ifndef CLOCK_H_INCLUDED
#define CLOCK_H_INCLUDED
#include <sys/time.h>
#include <stdio.h>

#ifdef USE_JUCE
#else
//#include <BeagleRT.h>
#include <native/timer.h>
#endif /* USE_JUCE */

typedef long long int myClock_t;

namespace Clock
{
  myClock_t getTimeUs();
}
#endif /* CLOCK_H_INCLUDED */