Added Canvas 1.1.0, originally not under SCM so no historical development records...
[canvas.git] / library / smarty / internals / core.get_microtime.php
blob3c998a71f0ebbc0396974f4efd439f875f78bbee
1 <?php
2 /**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
8 /**
9 * Get seconds and microseconds
10 * @return double
12 function smarty_core_get_microtime($params, &$smarty)
14 $mtime = microtime();
15 $mtime = explode(" ", $mtime);
16 $mtime = (double)($mtime[1]) + (double)($mtime[0]);
17 return ($mtime);
21 /* vim: set expandtab: */