Янулов,
<?php $starttime = microtime(); тут код echo 'Генерация: ' . round((microtime()-$statement), 3); ?>