public static function getDuration($start)
    {
        $time = microtime();
        $time = explode(' ', $time);
        $time = $time[1] + $time[0];
        $finish = $time;
        
        return round(($finish - $start), 4);
    }
public static function getDuration($start)
    {
        $time = microtime();
        $time = explode(' ', $time);
        $time = $time[1] + $time[0];
        $finish = $time;
        
        return round(($finish - $start), 4);
    }
public static function getDuration ( $ start ) { $ time = microtime ( ) ; $ time = explode ( ' ' , $ time ) ; $ time = $ time [ 1 ] + $ time [ 0 ] ; $ finish = $ time ; return round ( ( $ finish - $ start ) , 4 ) ; }
Get the difference between the current timestamp in microseconds and the given timestamp.

@param number $start
Timestamp to calculate the different with.

@return number Difference between the current timestamp in microseconds and the given timestamp.
Get the difference between the current timestamp in microseconds and the given timestamp .