amakrkr Posted February 22, 2010 Posted February 22, 2010 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.
kaotkbliss Posted February 22, 2010 Posted February 22, 2010 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
amakrkr Posted February 22, 2010 Author Posted February 22, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now