Location: PHPKode > projects > PHPEcho CMS > kernel/smarty/internals/core.get_microtime.php
<?php
/*  +--------------------------------------------
*   |
*   |     Product:       PHPEchoCMS
*   |     Author:        Tigran Abrahamyan
*   |     License:       GPL
*   |     Last updated:  23.01.07
*   |     For version:   1.2  
*   |     Desc:          Template system module
*   |        
*   +--------------------------------------------
*/

/**
 * Get seconds and microseconds
 * @return double
 */
function smarty_core_get_microtime($params, &$smarty)
{
    $mtime = microtime();
    $mtime = explode(" ", $mtime);
    $mtime = (double)($mtime[1]) + (double)($mtime[0]);
    return ($mtime);
}


/* vim: set expandtab: */

?>
Return current item: PHPEcho CMS