Tick generator using interval.

Close #1166.
Yea, not 100% sure but I think this is a tslint bug