CoreFiles by mySites.guru
Php73.php34 lines, 642 bytes, from Joomla_3.9.2-Stable-Full_Package.zip
Raw History Compare with 3.9.1
md5
0acf9290098f820dac3870e38350097e
sha1
9d9f5b10dc35dd72d0b18932f9b7ee255c9dcc8b
sha256
5da339027b3163db04ff65a01a89dc890c7f00ffc07cac1581a23356cb60c133
<?php

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 36 releases, Joomla 3.9.0-alpha to 4.0.0-alpha10. See them all, or every version of this file.