[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/polyfill-php73/ -> Php73.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of the Symfony package.
   5   *
   6   * (c) Fabien Potencier <[email protected]>
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  namespace Symfony\Polyfill\Php73;
  13  
  14  /**
  15   * @author Gabriel Caruso <[email protected]>
  16   * @author Ion Bazan <[email protected]>
  17   *
  18   * @internal
  19   */
  20  final class Php73
  21  {
  22      public static $startAt = 1533462603;
  23  
  24      /**
  25       * @param bool $asNum
  26       *
  27       * @return array|float|int
  28       */
  29      public static function hrtime($asNum = false)
  30      {
  31          $ns = microtime(false);
  32          $s = substr($ns, 11) - self::$startAt;
  33          $ns = 1E9 * (float) $ns;
  34  
  35          if ($asNum) {
  36              $ns += $s * 1E9;
  37  
  38              return \PHP_INT_SIZE === 4 ? $ns : (int) $ns;
  39          }
  40  
  41          return [$s, (int) $ns];
  42      }
  43  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer