Mercurial > hg > beaglert
diff core/VirtualClock.cpp @ 152:8f98b32d0e23 ClockSync
Last commit on this branch for a while. Overall not very succesful
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 05 Oct 2015 13:06:14 +0100 |
parents | ebbfb154351a |
children |
line wrap: on
line diff
--- a/core/VirtualClock.cpp Tue Sep 22 04:10:07 2015 +0100 +++ b/core/VirtualClock.cpp Mon Oct 05 13:06:14 2015 +0100 @@ -80,11 +80,13 @@ } void VirtualClock::addOffset(double periodOffset){ +// printf("Clock was : %f ", elapsedPeriods); elapsedPeriods-=periodOffset; if(elapsedPeriods<0){ printf("ERROR: periodOffset adjustment of %f resulted in elapsedPeriods=%f\n", periodOffset, elapsedPeriods); exit(1); } +// printf("and now is: %f after a correction of %f", elapsedPeriods, periodOffset); movingAverage.reset(); } double VirtualClock::getPeriod(){