On Fri, February 29, 2008 6:53 am, apaella wrote:
>
> Hi all, I want to put in the bottom of my layout.phtml page the time by
> the
> scriptstart from the end.
>
> I know that precise and accurate time is "impossible" (we can't put HTML
> code after the code sent), but I would know the "very last moment" when I
> can put code into the HTML.
>
> any suggestions?
A simple stopwatch implementation is available here:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Stopwatch+-+Matthew+Ratzloff
Simple usage:
// At top of bootstrap
$stopwatch = new Zend_Stopwatch();
$stopwatch->start();
// Later on
print $stopwatch; // prints elapsed seconds