Mercurial > hg > beaglert
view include/Clock.h @ 139:4e2dd3eb1d28 ClockSync
The reported offset is now meaningful. The whole thing is waaay too jittery.
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 13 Sep 2015 21:34:47 +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 */