From d2df9bc7cc9d4b3e53818470c5d0977c9a36677c Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sun, 15 Apr 2007 17:41:17 +0000 Subject: update pMachine to EllisLab update copyright year update Code Igniter to CodeIgniter --- user_guide/libraries/benchmark.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'user_guide/libraries/benchmark.html') diff --git a/user_guide/libraries/benchmark.html b/user_guide/libraries/benchmark.html index ce4eb8993..3bb63fbf5 100644 --- a/user_guide/libraries/benchmark.html +++ b/user_guide/libraries/benchmark.html @@ -2,7 +2,7 @@ -Code Igniter User Guide +CodeIgniter User Guide @@ -22,7 +22,7 @@ window.onload = function() { - + @@ -33,7 +33,7 @@ window.onload = function() {
- +

Code Igniter User Guide Version 1.5.2

CodeIgniter User Guide Version 1.5.3

@@ -45,7 +45,7 @@ window.onload = function() { @@ -63,7 +63,7 @@ Benchmarking Class

Benchmarking Class

-

Code Igniter has a Benchmarking class that is always active, enabling the time difference between any +

CodeIgniter has a Benchmarking class that is always active, enabling the time difference between any two marked points to be calculated.

Note: This class is initialized automatically by the system so there is no need to do it manually.

@@ -153,13 +153,13 @@ $this->benchmark->mark('another_mark_end');

Displaying Total Execution Time

-

If you would like to display the total elapsed time from the moment Code Igniter starts to the moment the final output +

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();?>

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, Code Igniter does not stop the benchmark until right before the final +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:

@@ -195,7 +195,7 @@ Previous Topic:   SecurityUser Guide Home   ·   Next Topic:  Calendaring Class

-

Code Igniter  ·  Copyright © 2006  ·  Ellislab, Inc.

+

CodeIgniter  ·  Copyright © 2007  ·  Ellislab, Inc.

-- cgit v1.2.3-24-g4f1b