Have you ever wanted to add a custom timer to your CakePHP 3 applications debug toolbar? Well it is not as complicated as you might think. The following is a short snippet that shows how to do just that. Add the use statement for the debug kit and then call the static start and stop methods to begin and end a custom named timer. This can be extremely helpful for identifying sections of code that need to be reworked or a laggy API.

use DebugKit;

class UsersController extends AppController
{
	public function index()
	{
		DebugKit\DebugTimer::start("Sendible Api");
		$sendible_users = $this->SendibleAccounts->userSelect();
		DebugKit\DebugTimer::stop("Sendible Api");
	}
}