Tick generator using interval.

Close #1166.
Just noting that it's really odd the generated file decided to just two spaces here for no reason