Sign in to follow this  
Followers 0
amakrkr

Global timer or something similar?

3 posts in this topic

Hello all,

i have a question which is bothering me for about few weeks now.

How can i make the following:

Funtion 1

IF statment

"timer or global timer of some sort"

IF statment

So i want counter in between the two "IF statements" which will run (for like 40 seconds)

without pausing whole script.

I want to call function execute First IF start timer and Execute second IF without waiting for timer to finish.

I hope my explanation is clear, i am sorry but English is not my main language.

Share this post


Link to post
Share on other sites



Perhaps timerinit is what you need.

It starts a timer that does not pause the script. When you call timerdiff it returns the time between when timerinit started and timerdiff was called.

Maybe you can work with that for what you want?


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

Perhaps timerinit is what you need.

It starts a timer that does not pause the script. When you call timerdiff it returns the time between when timerinit started and timerdiff was called.

Maybe you can work with that for what you want?

ohh yea i totally forgot bout this option.

Thx mate i will give it a try.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0