Tick generator using interval.

Close #1166.
Might want to specify... (It seems 0 is always in the tickGenerator?)