Site Tools


php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
php [2017/10/31 01:22]
conovaloff
php [2018/12/14 14:56] (current)
conovaloff [Debug]
Line 198: Line 198:
   echo "<​br>";​   echo "<​br>";​
   echo $time   echo $time
 +
 +<file php>  ​
 +    private function some(string $string)
 +    {
 +        static $some;
 +
 +        if ($some) {
 +            $result = number_format(microtime(true)-$some,​3);​
 +            echo $string . ': ' . $result . PHP_EOL;
 +        }
 +
 +        $some = microtime(true);​
 +    }
 +</​file> ​   ​
 == eAccelerator == == eAccelerator ==
 http://​www.itpad.ru/?​p=1651 http://​www.itpad.ru/?​p=1651
php.txt · Last modified: 2018/12/14 14:56 by conovaloff

Page Tools