annotate 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
rev   line source
giuliomoro@135 1 #ifndef CLOCK_H_INCLUDED
giuliomoro@135 2 #define CLOCK_H_INCLUDED
giuliomoro@135 3 #include <sys/time.h>
giuliomoro@135 4 #include <stdio.h>
giuliomoro@135 5
giuliomoro@138 6 #ifdef USE_JUCE
giuliomoro@138 7 #else
giuliomoro@138 8 //#include <BeagleRT.h>
giuliomoro@138 9 #include <native/timer.h>
giuliomoro@138 10 #endif /* USE_JUCE */
giuliomoro@138 11
giuliomoro@135 12 typedef long long int myClock_t;
giuliomoro@135 13
giuliomoro@135 14 namespace Clock
giuliomoro@135 15 {
giuliomoro@135 16 myClock_t getTimeUs();
giuliomoro@135 17 }
giuliomoro@138 18 #endif /* CLOCK_H_INCLUDED */