Skip timecount down for the otp code

Hi i have an app in which there is a count down timer for OTP code. I have to click on a button and then there is a wait time of 30 seconds to enter the otp code. Since, i am using mocked otp code, so i dont want to wait for 30 seconds. i click on the button and want to enter the code in the text box, but my test waits for 30 seconds to finish the count down and then enters the otp. Is there any way to skip that time? thanks in advance