view Smarty/internals/core.get_microtime.php @ 5:7283cff6dacb

new file: templates_c/index.html new file: thumbs/index.html new file: video/index.html
author Sushi-k <epgrec@park.mda.or.jp>
date Wed, 08 Jul 2009 17:58:37 +0900
parents f5a9f0eb4858
children
line wrap: on
line source

<?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: */

?>