Utility class to iterate through times with a given step size.