Mercurial > epgrec.yaz
view Smarty/internals/core.get_microtime.php @ 64:b7d8699a955c
change: preg_replace to str_replace
author | yoneda <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Fri, 14 Aug 2009 13:21:36 +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: */ ?>