Measure time for each tick; sleep that much less