pickles/contrib/smarty/internals/core.get_microtime.php
Josh Sherman 6c31a4b587 Moved Smarty to the contrib directory
git-svn-id: http://svn.cleancode.org/svn/pickles@16 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-04-24 16:10:25 +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: */
?>