What is the equivalent of method
Yii::getLogger()->getExecutionTime()
in Yii2, that present the total time for serving the current request?
You should simply use :
Yii::getLogger()->getElapsedTime();
Read more : http://www.yiiframework.com/doc-2.0/yii-log-logger.html#getElapsedTime()-detail
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With