I use the following code for timer:
export class TimerService { private ticks: number = 0; private seconds: number = 0; private timer; constructor(s
So after some PUNISHING research I've added my own npm library for this problem.
Improves previous answer by NOT having to add any extra convolution variables and ease of use.