view Smarty/internals/core.get_microtime.php @ 122:709bc9c69318

mod: チャンネルスキップ引き続き実装中(まだ途中)
author yoneda <epgrec@park.mda.or.jp>
date Tue, 16 Mar 2010 23:08:59 +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: */

?>