mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-29 19:31:36 +01:00
24 lines
362 B
PHP
24 lines
362 B
PHP
<?php
|
|
/**
|
|
* Smarty plugin
|
|
* @package Smarty
|
|
* @subpackage plugins
|
|
*/
|
|
|
|
/**
|
|
* Get seconds and microseconds
|
|
* @return double
|
|
*/
|
|
function smarty_core_get_microtime($params, &$this)
|
|
{
|
|
$mtime = microtime();
|
|
$mtime = explode(" ", $mtime);
|
|
$mtime = (double)($mtime[1]) + (double)($mtime[0]);
|
|
return ($mtime);
|
|
}
|
|
|
|
|
|
/* vim: set expandtab: */
|
|
|
|
?>
|