original_string: private function estimate($pt) {
          if ($this->lastupdate == 0) {
              return null;
          }
          if ($pt < 0.00001) {
              return null; // We do not know yet how long it will take.
          }
          if ($pt > 99.99999) {
              return 0; // Nearly done, right?
          }
          $consumed = microtime(true) - $this->time_start;
          if ($consumed < 0.001) {
              return null;
          }
  
          return (100 - $pt) * ($consumed / $pt);
      }
code: private function estimate($pt) {
          if ($this->lastupdate == 0) {
              return null;
          }
          if ($pt < 0.00001) {
              return null; // We do not know yet how long it will take.
          }
          if ($pt > 99.99999) {
              return 0; // Nearly done, right?
          }
          $consumed = microtime(true) - $this->time_start;
          if ($consumed < 0.001) {
              return null;
          }
  
          return (100 - $pt) * ($consumed / $pt);
      }
code_tokens: private function estimate ( $ pt ) { if ( $ this -> lastupdate == 0 ) { return null ; } if ( $ pt < 0.00001 ) { return null ; // We do not know yet how long it will take. } if ( $ pt > 99.99999 ) { return 0 ; // Nearly done, right? } $ consumed = microtime ( true ) - $ this -> time_start ; if ( $ consumed < 0.001 ) { return null ; } return ( 100 - $ pt ) * ( $ consumed / $ pt ) ; }
docstring: Estimate how much time it is going to take.
  
  @param int $pt From 1-100.
  @return mixed Null (unknown), or int.
docstring_tokens: Estimate how much time it is going to take .