Js function is greater than 350ms execution less than 350ms does not execute?

but if I write like this, the click will execute

let time = 0
     setIntervalNum = setInterval(() => {
       time  += 1
       if (time >= 1) {
         this.vocieAuthorize();
         console.log(1)
       } else {
         clearInterval(setIntervalNum)
       }
      }, 2000)
Mar.28,2021
Menu