Skip to content

Instantly share code, notes, and snippets.

@bluesmoon
Created January 11, 2011 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluesmoon/774939 to your computer and use it in GitHub Desktop.
Save bluesmoon/774939 to your computer and use it in GitHub Desktop.
Measure page generation time using boomerang
<?php
$t_serverstart = microtime(true);
// rest of page generation goes in here
$t_serverend = microtime(true);
?>
<script type="text/javascript">
BOOMR.plugins.RT.setTimer("t_pagegen", <?php echo $t_serverend - $t_serverstart; ?>);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment