Tick generator using interval.

Close #1166.
can we be a bit more descriptive: "Step cannot be 0"