Page Load Time + iframe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mcorrea

    Page Load Time + iframe

    There is any way to get the total load time of a page when you get an
    "IFRAME" on it?
    In all the tests, I got only the base page time without the "IFRAME"
    time....

    <?php
    $bench = new phpCounter();
    $bench->StartCouter( );

    $page = "<iframe class=......";
    echo $page;

    $bench->EndCounter() ;

    echo $bench->GetCounter() ;
    ?>

    Where:
    // StartCounter() & EndCounter() call this function
    function SetCounter ( ) // {{{
    {

    list($usec, $sec) = explode(" ",microtime ());
    return ((float)$usec + (float)$sec);

    } // }}}

    // Function to return the counter
    function GetCounter ( ) // {{{
    {

    $output = ($this->end - $this->start);
    return substr($output, 0, 5);

    } // }}}

    thanks

    Marcelo Correa

Working...