揮発性のメモ2

知識をメモ書きしておく

nextT

                                now
*     *     *====================*  *     *     *
+-----+-----+-----+-----+-----+-----+-----+-----+
  △t             T               nextT
nextT = now + t-((now-T)%t);