Actions

API16

JProfiler/getmicrotime

< API16:JProfiler

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

Get the current time.



Syntax

static getmicrotime()


Returns

float The current time

Defined in

libraries/joomla/error/profiler.php

Importing

jimport( 'joomla.error.profiler' );

Source Body

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



Examples

Code Examples


Advertisement