Microtime() returns the decimal, then the UNIX time...
Im working on a test that returns the speed of page loading time
I need a very efficient way to get the page loading time down the the hundred thousanths of a second
I have tried...
$x = explode(" ", microtime());
$start = $x[0] + $x[1]
As well as dozens of other things
However, that code only returns two decimal places
I really only need the first two digits (ones and tens) to subtract. I just need to make sure the top doesnt start at XXXXXXXX23.9583823323 and the bottom at XXXXXXXX24.021384932
If you get the jist of what Im blabbering about...
Anyway, this code is sufficient for printing what I want, but I cant use it as an integer...
$x=microtime(); echo substr($x,-2) . substr($x,1,strpos($x," "));
Is there any way php will recognise those two string values as integers?
Is there a function that will add those thogther and keep the persise decimals?
I have searched this forum and the php.net site but havnt found anything
Hope you can help as soon as possible
Bear