pickles/contrib/Smarty-2.6.19/libs/internals/core.get_microtime.php
Josh Sherman 78f0f2f6c9 Readded Smarty.
git-svn-id: http://svn.cleancode.org/svn/pickles@24 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-06-29 01:27:44 +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: */
?>