Doctrine\DBAL\Migrations\Version::getTime PHP Method

getTime() public method

Returns the time this migration version took to execute
public getTime ( ) : integer
return integer $time The time this migration version took to execute
    public function getTime()
    {
        return $this->time;
    }

Usage Example

 /**
  * @param         $versionName
  * @param Version $version
  * @param bool    $timeQueries
  * @param string  $verb
  */
 protected function note($versionName, Version $version, $timeQueries = false, $verb = 'Migrated')
 {
     $msg = "<info>{$verb}:</info> {$versionName}";
     if ($timeQueries) {
         $msg .= " ({$version->getTime()}s)";
     }
     $this->notes[] = $msg;
 }