Tick generator using interval.

Close #1166.
This file didnt get updated