Script execution time

I want to know how many milliseconds my page take to generate.

What should i use ? Some kind of logger? Which one ?

Many thanks…

Some things you can use: Performance Profiling, Inspect Firebug Network Tab, YSlow, ab (Apache benchmark). Depends on what exactly you want to measure.

I want measure server generated response time. I use YSlow for client side, very informative.

Check Logging section from guide, in that check performance profiling topic.


Yii::beginProfile('blockID');

...code block being profiled...

Yii::endProfile('blockID');

I think you are looking for http://www.yiiframework.com/doc/api/CLogger#getExecutionTime