DebugKit\DebugTimer::requestTime PHP 메소드

requestTime() 공개 정적인 메소드

Get the total execution time until this point
public static requestTime ( ) : float
리턴 float elapsed time in seconds since script start.
    public static function requestTime()
    {
        $start = self::requestStartTime();
        $now = microtime(true);
        return $now - $start;
    }

Usage Example

예제 #1
0
 /**
  * Get the summary for the panel.
  *
  * @return string
  */
 public function summary()
 {
     $time = Number::precision(DebugTimer::requestTime(), 2) . ' s';
     $memory = Number::toReadableSize(DebugMemory::getPeak());
     return "{$time} / {$memory}";
 }
All Usage Examples Of DebugKit\DebugTimer::requestTime