diff --git a/src/TimeProfiler.php b/src/TimeProfiler.php new file mode 100644 index 0000000..754980a --- /dev/null +++ b/src/TimeProfiler.php @@ -0,0 +1,36 @@ + self::$max_time) { + echo "{$event->getScenario()->getFile()}:{$event->getScenario()->getLine()}\n"; + throw new PendingException("Request too long {$diff}ms > " . self::$max_time . "ms \n"); + } + } +}