Basically what I want to do is ONLY perform a command after a certain period of time has passed.
So for instance, run a big long complicated RegExp UNTIL a certain number of seconds pass, then do something else.
Is there a way to do this in PHP?
maybe this will help?
http://www.php.net/manual/en/function.sleep.php