<?php

// benchmarks.tpl
// -----------------------------------------------------------------------------
// Benchmarks template
//
// Revision   > $Rev: 77 $
// Date		  > $Date: 2009-06-17 16:45:34 +0100 (Wed, 17 Jun 2009) $
// Author     > RAK for DML
// Copyright  > (C) Digital Mail Limited (2005-2009)
// -----------------------------------------------------------------------------

if (!$GLOBALS['dmx_options']['debug_level']) return;

?>

<div class="dmb0"  style="margin: 0px 20px;">
<div class="dmx">
<div class="benchmarks">
<div class="<?=$comp_name;?>">

<table width="99%" cellpadding="5" cellspacing="0" border="1">
	<tr>
		<td colspan="3">
			<b>BENCHMARKS: <?=$timestamp;?></b>
		</td>
	</tr>
	<tr>
		<td><b>Event</b></td>
		<td><b>Time since page start (ms)</b></td>
		<td><b>Time from previous (ms)</b></td>
	</tr>
	<?php for ($i=0; $i<$num_benchmarks; $i++) : ?>
	<tr>
		<td><?=$dmx_benchmarks[$i]['name'];?></td>
		<td><?=$dmx_benchmarks[$i]['since_start'];?></td>
		<td><?=$dmx_benchmarks[$i]['since_prev'];?>&nbsp;</td>
	</tr>
	<?php endfor; ?>
</table>
<br>

</div>
</div>
</div>
</div>