Packaging a timer class

how should i run a timer in a class(.as file) to my timeline? :crying:
im getting cofused by stage then timer? or direct code for timer?
i got error and it says implicit coercion of a value of type Class to an unrelated type flash.utils:Timer.

package  {
    import flash.display.Stage;
    import flash.events.Event
    import flash.events.TimerEvent;
    import flash.utils.Timer;
    
    public class Time {
        private var myStage:Stage;
        private var timer:Timer = new Timer(8000);
        
        function Time(timer:Timer) {
            this.timer = timer;
            timer.addEventListener(TimerEvent.TIMER,onTime);
            timer.start();
            
        }
        public function onTime(e:TimerEvent):void{
            trace("1");
        }

    }
    
}