ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Question about {elapsed_time} and embedded templates

November 06, 2007 5:20pm

Subscribe [3]
  • #1 / Nov 06, 2007 5:20pm

    Pete Smith

    91 posts

    Hope someone can answer this one…

    What exactly does {elapsed_time} report? Is it the time for that template, or the entire page?

    So say I have 1 main template (Template A) and inside of it, among other things, two embedded templates (Template B & Template C).

    If I put {elapsed_time} at the bottom of Template A, will it report the time taken to interpret Template B & C in addition to the time taken to interpret A? Or will it just include A?

    Or another situation… can I put it in Template C to just get the time its taking Template C to be interpreted?

    Thanks for any insight.

  • #2 / Nov 07, 2007 12:44pm

    e-man

    1816 posts

    From the docs:

    elapsed_time
    {elapsed_time}
    The amount of time, in seconds, it took ExpressionEngine to render the current page.

    So, yes indeed the entire page.

  • #3 / Nov 07, 2007 4:10pm

    Pete Smith

    91 posts

    Thanks, I swear I did a search yesterday and came up empty.

    Maybe I searched on the main site, not on the documentation mini-site.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases