title: microtime in second with 2 decimals
body: <p>I try calculate time of an act in second with 2 decimals.</p>
  
  <pre><code>protected function microtimeFormat($data)
      {
          $duration = microtime(true) - $data;
          $hours = (int)($duration/60/60);
          $minutes = (int)($duration/60)-$hours*60;
          return $seconds = $duration-$hours*60*60-$minutes*60;
  
      }
  </code></pre>
  
  <p>this method get start time as $data...and get back it an int second</p>
  
  <p>for example it return 2second.</p>
  
  <p>I try get second with 2 decimals ...</p>
  
  <pre><code>protected function microtimeFormat($data,$format=null,$lng=null)
      {
          $duration = microtime(true) - $data;
          $hours = (float)($duration/60/60);
          $minutes = (float)($duration/60)-$hours*60;
          $seconds = $duration-$hours*60*60-$minutes*60;
          return number_format((float)$seconds, 2, '.', '');
      }
  </code></pre>
  
  <p>but it return me 0.00 for short time</p>