FireBug – Built In Timer Tool

FireBug comes with a built in timer tool that allows you to start and stop a clock to get information about how long a process runs. Internally, we use this timer to expose PHP execution page times within the base FireBug Panel itself. We’ve exposed this timer so that you may grab its functionality and use it to clock your own processes.

$fireBug = Fire\Bug::get();

// get a start time
$startTime = $fireBug->timer();

// get time length in milliseconds
$timeLength = $fireBug->timer($startTime);

Leave a comment

Leave a Reply