Tick generator using interval.

Close #1166.
Can you add a test message here?