Remove microtimeFloat method
This commit is contained in:
		
					parent
					
						
							
								014112a16f
							
						
					
				
			
			
				commit
				
					
						d7bb7bd091
					
				
			
		
					 2 changed files with 1 additions and 12 deletions
				
			
		|  | @ -150,7 +150,7 @@ abstract class ProgressHelper implements HelperInterface | |||
|         } | ||||
| 
 | ||||
|         $currentDuration = $this->convertDuration($matches[2]); | ||||
|         $currentTime = $this->microtimeFloat(); | ||||
|         $currentTime = microtime(true); | ||||
|         $currentSize = trim(str_replace('kb', '', strtolower(($matches[1])))); | ||||
|         $percent = max(0, min(1, $currentDuration / $this->duration)); | ||||
| 
 | ||||
|  | @ -211,18 +211,8 @@ abstract class ProgressHelper implements HelperInterface | |||
|         ); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * @return number | ||||
|      */ | ||||
|     protected function microtimeFloat() | ||||
|     { | ||||
|         list($usec, $sec) = explode(" ", microtime()); | ||||
|         return ((float)$usec + (float)$sec); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Get the regex pattern to match a ffmpeg stderr status line | ||||
|      */ | ||||
|     abstract function getPattern(); | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue