title: Limit execution time of an function or command PHP
body: <p>Hi is there a possibility to set time limit only to a command or only to a function eg:</p>
  
  <pre><code>function doSomething()
  {
      //..code here..
  
      function1();
  
      //.. some code here..
  
  }
  </code></pre>
  
  <p>I want to set time limit only to function1.</p>
  
  <p>There exits set_time_limit but I think this sets the time limit to whole script.
  Anybody any Idea?</p>