8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c694d6 commit 3b9ed3eCopy full SHA for 3b9ed3e
src/Symfony/Component/Process/CHANGELOG.md
@@ -1,6 +1,11 @@
1
CHANGELOG
2
=========
3
4
+5.1.0
5
+-----
6
+
7
+ * added `Process::getStartTime()` to retrieve the start time of the process as float
8
9
5.0.0
10
-----
11
src/Symfony/Component/Process/Process.php
@@ -1208,6 +1208,18 @@ public function checkTimeout()
1208
}
1209
1210
1211
+ /**
1212
+ * @throws LogicException in case process is not started
1213
+ */
1214
+ public function getStartTime(): float
1215
+ {
1216
+ if (!$this->isStarted()) {
1217
+ throw new LogicException('Start time is only available after process start.');
1218
+ }
1219
1220
+ return $this->starttime;
1221
1222
1223
/**
1224
* Returns whether TTY is supported on the current operating system.
1225
*/
0 commit comments