Welcome Guest, Not a member yet? Register   Sign In
Issues with benchmark class
#1

[eluser]neen[/eluser]
I want to shift the decimal on elapsed_time() two places to the right, so I can output in MS (ie: 0.065 s to 65 ms). I'm using the following code:

Code:
<? $this->benchmark->elapsed_time() * 100 ?>

The problem is, it outputs (string) "{elapsed_time}" and then multiplies that by 100, which ends up equal to 0.

Now, I can always do this:
Code:
<?= number_format($this->benchmark->elapsed_time('total_execution_time_start', 'total_execution_time_end') * 1000)  ?>

Now the issue when I do that is very minor, but for some strange reason, 'total_execution_time_end' ends up before the benchmark for the current controller with profiler enabled...any ideas why this happens? Just curious..


Messages In This Thread
Issues with benchmark class - by El Forum - 03-23-2009, 07:58 PM
Issues with benchmark class - by El Forum - 03-23-2009, 08:27 PM
Issues with benchmark class - by El Forum - 03-23-2009, 09:18 PM
Issues with benchmark class - by El Forum - 03-23-2009, 09:30 PM
Issues with benchmark class - by El Forum - 03-23-2009, 09:32 PM
Issues with benchmark class - by El Forum - 03-24-2009, 03:49 AM
Issues with benchmark class - by El Forum - 03-24-2009, 05:47 AM
Issues with benchmark class - by El Forum - 03-24-2009, 08:13 AM
Issues with benchmark class - by El Forum - 03-24-2009, 04:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB