¡@

Home 

2014/10/15 ¤U¤È 10:16:05

iphone Programming Glossary: yourprocessmethod

Execute an “if” condition “x” milliseconds and stop for “y”millisecond and repeat the condition ?

http://stackoverflow.com/questions/10845025/execute-an-if-condition-x-milliseconds-and-stop-for-ymillisecond-and-repea

a Suggestion for you... Make a method and call this method when you want to start the process with TRUE value. void yourProcessMethod BOOL _flag if _flag Execute your process now check for time is it 5ms or not if time elapsed 5ms self yourProcessMethod.. BOOL _flag if _flag Execute your process now check for time is it 5ms or not if time elapsed 5ms self yourProcessMethod TRUE else self yourProcessMethod FALSE else Execute your process or do nothing if you want to stop it for 10 ms now check.. Execute your process now check for time is it 5ms or not if time elapsed 5ms self yourProcessMethod TRUE else self yourProcessMethod FALSE else Execute your process or do nothing if you want to stop it for 10 ms now check for time is it 10ms or not if..