safe for looptime=0, compute cycletime just before reading sensor