added Process::getLastOutputTime() method

This commit is contained in:
Karoly Gossler 2019-08-09 15:40:51 +02:00 committed by Fabien Potencier
parent a9ace36389
commit 0e7bf6fb52
2 changed files with 12 additions and 1 deletions

View File

@ -4,7 +4,8 @@ CHANGELOG
4.4.0
-----
* deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
* deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
* added `Process::getLastOutputTime()` method
4.2.0
-----

View File

@ -954,6 +954,16 @@ class Process implements \IteratorAggregate
fseek($this->stderr, $this->incrementalErrorOutputOffset);
}
/**
* Gets the last output time in seconds
*
* @return float|null The last output time in seconds or null if it isn't started
*/
public function getLastOutputTime(): ?float
{
return $this->lastOutputTime;
}
/**
* Gets the command line to be executed.
*