PageRenderTime 32ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/framework/vendor/smarty2/lib/internals/core.get_microtime.php

http://zoop.googlecode.com/
PHP | 23 lines | 9 code | 4 blank | 10 comment | 0 complexity | 72eb40e8367f77f0bd251e15a5bd4f5f MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
  1. <?php
  2. /**
  3. * Smarty plugin
  4. * @package Smarty
  5. * @subpackage plugins
  6. */
  7. /**
  8. * Get seconds and microseconds
  9. * @return double
  10. */
  11. function smarty_core_get_microtime($params, &$smarty)
  12. {
  13. $mtime = microtime();
  14. $mtime = explode(" ", $mtime);
  15. $mtime = (double)($mtime[1]) + (double)($mtime[0]);
  16. return ($mtime);
  17. }
  18. /* vim: set expandtab: */
  19. ?>