PluginProbe
Depicter — Popup & Slider Builder / 1.3.3
Depicter — Popup & Slider Builder v1.3.3
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / vendor / symfony / polyfill-php73 / Php73.php

Php73.php in Depicter — Popup & Slider Builder 1.3.3, at vendor/symfony/polyfill-php73/Php73.php

44 lines 866 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
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 <carusogabriel34@gmail.com>
16 * @author Ion Bazan <ion.bazan@gmail.com>
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 }
44