Location: PHPKode > scripts > SimpleProfiler > example.php
<?php

    include "simpleprofiler.php";

    $profile = new profiler();

    sleep(1);

    $profile->lap();

    sleep(2);

    $profile->lap("for-loop");

    for ($i = 0; $i <= 100000; ++$i) { }

    echo "<pre>".var_export($profile->stop(), true)."</pre>";

?>
Return current item: SimpleProfiler