API16

JProfiler/getmicrotime

From Joomla! Documentation

< API16:JProfiler
Revision as of 20:59, 24 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Get the current time.



Syntax[edit]

static getmicrotime()


Returns[edit]

float The current time

Defined in[edit]

libraries/joomla/error/profiler.php

Importing[edit]

jimport( 'joomla.error.profiler' );

Source Body[edit]

public static function getmicrotime()
{
        list($usec, $sec) = explode(' ', microtime());
        return ((float)$usec + (float)$sec);
}



Examples[edit]

Code Examples[edit]