Tick generator using interval.

Close #1166.
startIndex seems to be a misnomer since generatedTicks does not use this as a start index