Mercurial > epgrec.yaz
annotate Smarty/internals/core.get_microtime.php @ 68:25736d81c66d
modified: config.php.sample
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 21 Oct 2009 16:57:26 +0900 |
parents | f5a9f0eb4858 |
children |
rev | line source |
---|---|
1 | 1 <?php |
2 /** | |
3 * Smarty plugin | |
4 * @package Smarty | |
5 * @subpackage plugins | |
6 */ | |
7 | |
8 /** | |
9 * Get seconds and microseconds | |
10 * @return double | |
11 */ | |
12 function smarty_core_get_microtime($params, &$smarty) | |
13 { | |
14 $mtime = microtime(); | |
15 $mtime = explode(" ", $mtime); | |
16 $mtime = (double)($mtime[1]) + (double)($mtime[0]); | |
17 return ($mtime); | |
18 } | |
19 | |
20 | |
21 /* vim: set expandtab: */ | |
22 | |
23 ?> |