/[cvs]/nfo/php/libs/net.php.smarty/core/core.get_microtime.php
ViewVC logotype

Annotation of /nfo/php/libs/net.php.smarty/core/core.get_microtime.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed Jun 16 21:58:12 2004 UTC (20 years, 2 months ago) by joko
Branch: MAIN
CVS Tags: HEAD
updated to smarty-2.6.3

1 joko 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     ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed