From 37f4b9caa02783e06dd7c5318200113409a0deb1 Mon Sep 17 00:00:00 2001
From: Derek Jones
The Benchmark class can be used within your controllers, views, or your models. The process for usage is this:
+The Benchmark class can be used within your controllers, views, or your models. The process for usage is this:
Note: The words "code_start" and "code_end" are arbitrary. They are simply words used to set two markers. You can +
Note: The words "code_start" and "code_end" are arbitrary. They are simply words used to set two markers. You can use any words you want, and you can set multiple sets of markers. Consider this example:
$this->benchmark->mark('dog');
@@ -154,8 +154,8 @@ is sent to the browser, simply place this in one of your view templates:
<?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
-output is sent to the browser. It doesn't matter where you use the function call, the timer will continue to run until the very end.
+not using any parameters. When the parameters are absent, CodeIgniter does not stop the benchmark until right before the final
+output is sent to the browser. It doesn't matter where you use the function call, the timer will continue to run until the very end.
An alternate way to show your elapsed time in your view files is to use this pseudo-variable, if you prefer not to use the pure PHP:
{elapsed_time}
--
cgit v1.2.3-24-g4f1b
From 9c63d0bb34be4007178d5a7e46348d5e23fee3ff Mon Sep 17 00:00:00 2001
From: Phil Sturgeon
Date: Thu, 27 Oct 2011 01:55:44 +0100
Subject: Bumped CodeIgniter version to 2.1.0.
---
user_guide/libraries/benchmark.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'user_guide/libraries/benchmark.html')
diff --git a/user_guide/libraries/benchmark.html b/user_guide/libraries/benchmark.html
index c7b7ec9a7..602e6fac0 100644
--- a/user_guide/libraries/benchmark.html
+++ b/user_guide/libraries/benchmark.html
@@ -28,7 +28,7 @@
-CodeIgniter User Guide Version 2.0.3
+CodeIgniter User Guide Version 2.1.0
Table of Contents Page
--
cgit v1.2.3-24-g4f1b