pickles/contrib/Smarty-2.6.20/libs/internals/core.get_microtime.php
Josh Sherman 7a7c165b61 Upgraded Smarty from 2.6.19 to 2.6.20
git-svn-id: http://svn.cleancode.org/svn/pickles@51 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-09-19 00:56:45 +00:00

23 lines
360 B
PHP

<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Get seconds and microseconds
* @return double
*/
function smarty_core_get_microtime($params, &$smarty)
{
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = (double)($mtime[1]) + (double)($mtime[0]);
return ($mtime);
}
/* vim: set expandtab: */
?>