microtime for seconds

0

I'm checking how long a API takes to respond and I'm getting the values at start with microtime(true) and at the end with microtime(true) being so;

$start = microtime(true);
...
...
...
...
$end = microtime(true);

To convert to seconds the current code divides the subtraction of the values by 60:

($end - $start) / 60

But I did a lot of research and everything I find is about dividing the value by 1000000 , how do I get the difference of these values in segundos ?

    
asked by anonymous 25.10.2017 / 19:20

0 answers