ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/trunk/lib/include/Smarty/internals/core.get_microtime.php @ 2

Last change on this file since 2 was 2, checked in by ogawa, 16 years ago

OpenPNE 2.3.0

File size: 360 bytes
Line 
1<?php
2/**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
7
8/**
9 * Get seconds and microseconds
10 * @return double
11 */
12function 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?>
Note: See TracBrowser for help on using the repository browser.