Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file function.elapsed.php

Documentation is available at function.elapsed.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8. /**
  9.  * smarty_function_elapsed
  10.  */
  11. function smarty_function_elapsed($params&$gBitSmarty)
  12. {
  13.     global $gBitSystem;
  14.     
  15.     $ela number_format($gBitSystem->mTimer->elapsed(),2);
  16.     print($ela);
  17. }
  18.  
  19. /* vim: set expandtab: */
  20.  
  21. ?>

Documentation generated on Wed, 29 Jul 2015 13:56:37 +0000 by phpDocumentor 1.5.0-lsces