You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Isammoc OFF <is...@gmail.com> on 2011/04/02 22:21:33 UTC

How to display time for page generation ?

Hi all,

I would like to display a footer with the time spent to generate the page.

How can I do something like "generated in 0.123s" ?

Timestamp difference between start and end of the Page constructor is
obviously not the solution.
And I didn't find anything in Nabble... (815 answer for "time page generation")

If the discussion already happened, please send me a link.

Thanks,

-- 
Isammoc

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to display time for page generation ?

Posted by Isammoc OFF <is...@gmail.com>.
Thanks to you two,

2011/4/3 Martin Grigorov <mg...@apache.org>:
> Or org.apache.wicket.markup.html.ServerTimeFilter

I think it is what I was looking for.
But I think I will create my own IResponseFilter, in a similar way,
but to modify something else that "<head>".

> On Sun, Apr 3, 2011 at 5:34 AM, Pedro Santos <pe...@gmail.com> wrote:
>
>> Hi, the RequestLogger API can help you.
>>
>> http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/RequestLogger.html

I don't get how to manage with this.

Thanks again, Martin and Pedro
-- 
Isammoc

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to display time for page generation ?

Posted by Martin Grigorov <mg...@apache.org>.
Or org.apache.wicket.markup.html.ServerTimeFilter

On Sun, Apr 3, 2011 at 5:34 AM, Pedro Santos <pe...@gmail.com> wrote:

> Hi, the RequestLogger API can help you.
>
> http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/RequestLogger.html
>
> On Sat, Apr 2, 2011 at 5:21 PM, Isammoc OFF <is...@gmail.com> wrote:
>
> > Hi all,
> >
> > I would like to display a footer with the time spent to generate the
> page.
> >
> > How can I do something like "generated in 0.123s" ?
> >
> > Timestamp difference between start and end of the Page constructor is
> > obviously not the solution.
> > And I didn't find anything in Nabble... (815 answer for "time page
> > generation")
> >
> > If the discussion already happened, please send me a link.
> >
> > Thanks,
> >
> > --
> > Isammoc
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Pedro Henrique Oliveira dos Santos
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Re: How to display time for page generation ?

Posted by Pedro Santos <pe...@gmail.com>.
Hi, the RequestLogger API can help you.
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/RequestLogger.html

On Sat, Apr 2, 2011 at 5:21 PM, Isammoc OFF <is...@gmail.com> wrote:

> Hi all,
>
> I would like to display a footer with the time spent to generate the page.
>
> How can I do something like "generated in 0.123s" ?
>
> Timestamp difference between start and end of the Page constructor is
> obviously not the solution.
> And I didn't find anything in Nabble... (815 answer for "time page
> generation")
>
> If the discussion already happened, please send me a link.
>
> Thanks,
>
> --
> Isammoc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos