In php, when will a inline ';` as that will show when the php is executed. – Sean Apr 14 '16 at 07:41

  • ah, thanks arkascha and Sean. Now I understand the time I got. – Trygve Aspenes Apr 14 '16 at 07:48
  • 1 Answers1

    0

    To measure time in php you need to use php code.

    At the begining run:

    $start = time();
    

    and at the end use

    $duration = time() - $start;
    echo '<script>console.log("Duration ",' . $duration . ');</script>';
    

    You can also echo Start and End but you need to use php time:

    echo '<script>console.log("Start ",' . time() . ');</script>';
    

    and

    echo '<script>console.log("End ",' . time() . ');</script>';
    
    jcubic
    • 61,973
    • 54
    • 229
    • 402