From 2f9559736080f8386fec1bb5a1d99bd9855e2a4d Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 24 Apr 2008 13:12:46 +0000 Subject: changed guide examples to not use ?=, and instead use ?php echo --- user_guide/libraries/benchmark.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide/libraries/benchmark.html') diff --git a/user_guide/libraries/benchmark.html b/user_guide/libraries/benchmark.html index 4afa58bc3..177bbc7ba 100644 --- a/user_guide/libraries/benchmark.html +++ b/user_guide/libraries/benchmark.html @@ -151,7 +151,7 @@ $this->benchmark->mark('another_mark_end');

If you would like to display the total elapsed time from the moment CodeIgniter starts to the moment the final output is sent to the browser, simply place this in one of your view templates:

-<?=$this->benchmark->elapsed_time();?> +<?php echo $this->benchmark->elapsed_time();?>

You'll notice that it's the same function used in the examples above to calculate the time between two point, except you are not using any parameters. When the parameters are absent, CodeIgniter does not stop the benchmark until right before the final @@ -169,7 +169,7 @@ functions you must set your own start/end points.

If your PHP installation is configured with --enable-memory-limit, you can display the amount of memory consumed by the entire system using the following code in one of your view file:

-<?=$this->benchmark->memory_usage();?> +<?php echo $this->benchmark->memory_usage();?>

Note: This function can only be used in your view files. The consumption will reflect the total memory used by the entire app.

An alternate way to show your memory usage in your view files is to use this pseudo-variable, if you prefer not to use the pure PHP:

-- cgit v1.2.3-24-g4f1b