Wait/sleep Command

I have a program that will count up for as long as the cursor is in the object. But I want the code to wait a short amount of time before counting up again. I don’t want to pause the project, just the code. Would there be a simple way to do this?
Thanks!
Lakeside Out!
P.S.
I have my code below

   function mouseover() {
    function update() {
        TimeIn = TimeIn + 1
        //Pause CODE for set amount of time.
        
    }
    
}

Hey @LakesideMiners! @zrispo and I are working on an update to the mouse functions right now that will hopefully make this really straightforward. I will post back here when it’s up!

is there a way that I could do that in the mean time?

Sorry I didn’t get back to this earlier. We pushed the changes to our prerelease branch. You can use it at prerelease.wickeditor.com

Here’s the code that will work in the current prerelease branch.

framesToWait = 30; // Number of frames to wait
framesWaited = 0; // Number of frames we've waited
count = 0; // A Basic Counter

function mouseHover() {
    if (framesWaited == framesToWait) {
        framesWaited = 0; // reset our timer. 
        count += 1; // increase the counter after we've waited. 
    }
    
    framesWaited += 1; 
}

Here’s a project that uses the example code to increment a text counter
https://drive.google.com/file/d/1c3edFYeNzUOlLftO-mJk6soohkQAJ6si/view?usp=sharing

We’ll be updating the main branch within the next few days.

@Luxapodular Hey I found a workaround the worked a bit better TBH. But thanks