Wanted to execute Php code for some particular seconds
<p>I wanted to execute a bunch of code for 5 seconds and if it has not finished executing within the specificed time frame I need to execute another piece of code..</p>

<p>Whether it's possible?</p>

<p>Ex..
There are two functions A and B</p>

<p>If A takes more than 30 seconds to execute the control should pass on to B</p>
