CoreFiles by mySites.guru
Php73.php43 lines, 871 bytes, from Joomla_3.9.21-Stable-Full_Package.zip
Raw History Compare with 3.9.20
md5
ec9ae654d21ecc9ae694f8e87cd8630b
sha1
af69494b48b41116a232a3b41c513691131c8b71
sha256
14601a2c0de9ed6e5ebdaabe84525be6be9828bd8a4f15b58fa4972e6140ad91
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Polyfill\Php73;

/**
 * @author Gabriel Caruso <[email protected]>
 * @author Ion Bazan <[email protected]>
 *
 * @internal
 */
final class Php73
{
    public static $startAt = 1533462603;

    /**
     * @param bool $asNum
     *
     * @return array|float|int
     */
    public static function hrtime($asNum = false)
    {
        $ns = microtime(false);
        $s = substr($ns, 11) - self::$startAt;
        $ns = 1E9 * (float) $ns;

        if ($asNum) {
            $ns += $s * 1E9;

            return \PHP_INT_SIZE === 4 ? $ns : (int) $ns;
        }

        return array($s, (int) $ns);
    }
}

The same content is in 69 releases, Joomla 3.9.13-rc to 4.0.0-beta7. See them all, or every version of this file.