vlibTemplate

vLib Logo

6.24. getParseTime()

Function Description
 getParseTime()

This function will allow you to get the time it took, in seconds and microseconds, for the template to be parsed. Therefore this function should only be used once one of the parsing functions has been called (fastPrint(), pparse(), or grab()). This function only works if the OPTION 'TIME_PARSE' is set to 1.

Example

  $tmpl->grab();
  echo $tmpl->getParseTime(); // will echo out the time it took to parse the template