Tick generator using interval.

Close #1166.
I need to change it.