Blame | Last modification | View Log | RSS feed
<html>
<head>
<title>File Source for Chronometre.php</title>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
<tr>
<td class="header_top">Framework</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
<tr>
<td class="header_menu">
[ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ]
[ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ]
[ <a href="../elementindex.html" class="menu">all elements</a> ]
</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="200" class="menu">
<b>Packages:</b><br />
<a href="../li_Framework.html">Framework</a><br />
<br /><br />
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1 align="center">Source for file Chronometre.php</h1>
<p>Documentation is available at <a href="../Framework/_Chronometre.php.html">Chronometre.php</a></p>
<div class="src-code">
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/** Classe Chronometre() - Permet de stocker et d'afficher</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * les temps d'éxécution de script.</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * Cette classe permet de réaliser un ensemble</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * de mesure de temps prises à</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * différents endroits d'un script.</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * Ces mesures peuvent ensuite être affichées au</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * sein d'un tableau XHTML.</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * PHP Version 5</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP</span></div></li>
<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Framework</span></div></li>
<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li>
<li><div class="src-line"><a name="a18"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> 2009 Tela-Botanica</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL</span></div></li>
<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> Release: <package_version></span></div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li>
<li><div class="src-line"><a name="a22"></a><span class="src-doc"> */</span></div></li>
<li><div class="src-line"><a name="a23"></a><span class="src-key">class </span><a href="../Framework/Chronometre.html">Chronometre</a> <span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a24"></a> <span class="src-comm">/*** Attributs : ***/</span></div></li>
<li><div class="src-line"><a name="a25"></a> <span class="src-key">private </span><span class="src-var">$_temps </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a26"></a> </div></li>
<li><div class="src-line"><a name="a27"></a> <span class="src-doc">/** Constructeur : **/</span></div></li>
<li><div class="src-line"><a name="a28"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a29"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodsetTemps">setTemps</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'depart' </span>=> <a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">)))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a30"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a31"></a> </div></li>
<li><div class="src-line"><a name="a32"></a> <span class="src-doc">/** Accesseurs :</span></div></li>
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a34"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$cle </span><span class="src-doc">la cle associée à un chronomètre particulier</span></div></li>
<li><div class="src-line"><a name="a35"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a36"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">int </span><span class="src-doc">le temps écoulé</span></div></li>
<li><div class="src-line"><a name="a37"></a><span class="src-doc"> */</span></div></li>
<li><div class="src-line"><a name="a38"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-var">$cle </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a39"></a> <span class="src-var">$temps </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a40"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$cle</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a41"></a> <span class="src-var">$temps </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">[</span><span class="src-var">$cle</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a42"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a43"></a> <span class="src-var">$temps </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a44"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a45"></a> <span class="src-key">return </span><span class="src-var">$temps</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a46"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a47"></a> </div></li>
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/** Setteur pour la variable temps</span></div></li>
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array() </span><span class="src-doc-var">$moment </span><span class="src-doc">ajoute des points de chronométrage au tableau _temps</span></div></li>
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a52"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">null </span></div></li>
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> */</span></div></li>
<li><div class="src-line"><a name="a54"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodsetTemps">setTemps</a><span class="src-sym">(</span><span class="src-var">$moment </span>= <span class="src-key">array </span><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a55"></a> <a href="http://www.php.net/array_push">array_push</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">_temps</span><span class="src-sym">, </span><span class="src-var">$moment</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a56"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a57"></a> </div></li>
<li><div class="src-line"><a name="a58"></a> <span class="src-comm">/*** Méthodes : ***/</span></div></li>
<li><div class="src-line"><a name="a59"></a> </div></li>
<li><div class="src-line"><a name="a60"></a> <span class="src-doc">/** Méthode afficherChrono() -</span></div></li>
<li><div class="src-line"><a name="a61"></a><span class="src-doc"> * Permet d'afficher les temps d'éxécution de différentes parties d'un script.</span></div></li>
<li><div class="src-line"><a name="a62"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a63"></a><span class="src-doc"> * Cette fonction permet d'afficher un ensemble de</span></div></li>
<li><div class="src-line"><a name="a64"></a><span class="src-doc"> * mesure de temps prises à différents endroits d'un script.</span></div></li>
<li><div class="src-line"><a name="a65"></a><span class="src-doc"> * Ces mesures sont affichées au sein d'un tableau XHTML</span></div></li>
<li><div class="src-line"><a name="a66"></a><span class="src-doc"> * dont on peut controler l'indentation des balises.</span></div></li>
<li><div class="src-line"><a name="a67"></a><span class="src-doc"> * Pour un site en production, il suffit d'ajouter un style</span></div></li>
<li><div class="src-line"><a name="a68"></a><span class="src-doc"> * #chrono {display:none;} dans la css. De cette façon,</span></div></li>
<li><div class="src-line"><a name="a69"></a><span class="src-doc"> * le tableau ne s'affichera pas. Le webmaster lui pourra</span></div></li>
<li><div class="src-line"><a name="a70"></a><span class="src-doc"> * rajouter sa propre feuille de style affichant le tableau.</span></div></li>
<li><div class="src-line"><a name="a71"></a><span class="src-doc"> * Le développeur initial de cette fonction est Loic d'Anterroches.</span></div></li>
<li><div class="src-line"><a name="a72"></a><span class="src-doc"> * Elle a été modifiée par Jean-Pascal Milcent.</span></div></li>
<li><div class="src-line"><a name="a73"></a><span class="src-doc"> * Elle utilise une variable gobale : $_CHRONO_</span></div></li>
<li><div class="src-line"><a name="a74"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a75"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Loic d'Anterroches</span></div></li>
<li><div class="src-line"><a name="a76"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li>
<li><div class="src-line"><a name="a77"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">int </span><span class="src-doc"> </span><span class="src-doc-var">$indentation_origine </span><span class="src-doc">l'indentation de base.</span></div></li>
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">int </span><span class="src-doc"> </span><span class="src-doc-var">$indentation </span><span class="src-doc">le pas d'indentation.</span></div></li>
<li><div class="src-line"><a name="a80"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc"> </span><span class="src-doc-type">string </span><span class="src-doc"> la chaine XHTML de mesure des temps.</span></div></li>
<li><div class="src-line"><a name="a81"></a><span class="src-doc"> */</span></div></li>
<li><div class="src-line"><a name="a82"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Framework/Chronometre.html#methodafficherChrono">afficherChrono</a><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>= <span class="src-num">8</span><span class="src-sym">, </span><span class="src-var">$indentation </span>= <span class="src-num">4</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a83"></a> <span class="src-comm">// Création du chrono de fin</span></div></li>
<li><div class="src-line"><a name="a84"></a> <span class="src-var">$GLOBALS</span><span class="src-sym">[</span><span class="src-str">'_SCRIPT_'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'chrono'</span><span class="src-sym">]</span><span class="src-sym">-></span><span class="src-id">setTemps</span><span class="src-sym">(</span><span class="src-key">array </span><span class="src-sym">(</span></div></li>
<li><div class="src-line"><a name="a85"></a> <span class="src-str">'fin' </span>=> <a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a86"></a> <span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a87"></a> </div></li>
<li><div class="src-line"><a name="a88"></a> <span class="src-comm">// Début création de l'affichage</span></div></li>
<li><div class="src-line"><a name="a89"></a> <span class="src-var">$sortie </span>= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$indentation_origine</span><span class="src-sym">) </span>.</div></li>
<li><div class="src-line"><a name="a90"></a> <span class="src-str">'<table id="chrono" lang="fr" summary="Résultat du</span></div></li>
<li><div class="src-line"><a name="a91"></a><span class="src-str"> chronométrage du programme affichant la page actuelle.">' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a92"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a93"></a> <span class="src-str">'<caption>Chronométrage</caption>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a94"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a95"></a> <span class="src-str">'<thead>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a96"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a97"></a> <span class="src-str">'<tr><th>Action</th><th>Temps écoulé (en s.)</th></span></div></li>
<li><div class="src-line"><a name="a98"></a><span class="src-str"> <th>Cumul du temps écoulé (en s.)</th></tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a99"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a100"></a> <span class="src-str">'</thead>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a101"></a> </div></li>
<li><div class="src-line"><a name="a102"></a> <span class="src-var">$tbody </span>= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a103"></a> <span class="src-str">'<tbody>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a104"></a> </div></li>
<li><div class="src-line"><a name="a105"></a> <span class="src-var">$total_tps_ecoule </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a106"></a> </div></li>
<li><div class="src-line"><a name="a107"></a> <span class="src-comm">// Récupération de la premiére mesure</span></div></li>
<li><div class="src-line"><a name="a108"></a> <span class="src-var">$tab_depart </span>= <span class="src-sym">& </span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a109"></a> list <span class="src-sym">(</span><span class="src-var">$usec</span><span class="src-sym">, </span><span class="src-var">$sec</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$tab_depart</span><span class="src-sym">[</span><span class="src-str">'depart'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a110"></a> </div></li>
<li><div class="src-line"><a name="a111"></a> <span class="src-comm">// Ce temps correspond à tps_fin</span></div></li>
<li><div class="src-line"><a name="a112"></a> <span class="src-var">$tps_debut </span>= <span class="src-sym">(</span>(float) <span class="src-var">$usec </span>+ (float) <span class="src-var">$sec</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a113"></a> </div></li>
<li><div class="src-line"><a name="a114"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../Framework/Chronometre.html#methodgetTemps">getTemps</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-key">as </span><span class="src-var">$tab_temps</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a115"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$tab_temps </span><span class="src-key">as </span><span class="src-var">$cle </span>=> <span class="src-var">$valeur</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a116"></a> list <span class="src-sym">(</span><span class="src-var">$usec</span><span class="src-sym">, </span><span class="src-var">$sec</span><span class="src-sym">) </span>= <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$valeur</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a117"></a> <span class="src-var">$tps_fin </span>= <span class="src-sym">(</span>(float) <span class="src-var">$usec </span>+ (float) <span class="src-var">$sec</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a118"></a> </div></li>
<li><div class="src-line"><a name="a119"></a> <span class="src-var">$tps_ecoule </span>= <a href="http://www.php.net/abs">abs</a><span class="src-sym">(</span><span class="src-var">$tps_fin </span>- <span class="src-var">$tps_debut</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a120"></a> <span class="src-var">$total_tps_ecoule </span>+= <span class="src-var">$tps_ecoule</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a121"></a> </div></li>
<li><div class="src-line"><a name="a122"></a> <span class="src-var">$tbody </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a123"></a> <span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a124"></a> <span class="src-str">'<tr>' </span>.</div></li>
<li><div class="src-line"><a name="a125"></a> <span class="src-str">'<th>' </span>. <span class="src-var">$cle </span>. <span class="src-str">'</th>' </span>.</div></li>
<li><div class="src-line"><a name="a126"></a> <span class="src-str">'<td>' </span>. <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li>
<li><div class="src-line"><a name="a127"></a> <span class="src-str">'<td>' </span>. <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$total_tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li>
<li><div class="src-line"><a name="a128"></a> <span class="src-str">'</tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a129"></a> <span class="src-var">$tps_debut </span>= <span class="src-var">$tps_fin</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a130"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a131"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a132"></a> <span class="src-var">$tbody </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a133"></a> <span class="src-str">'</tbody>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a134"></a> </div></li>
<li><div class="src-line"><a name="a135"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a136"></a> <span class="src-str">'<tfoot>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a137"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">2</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a138"></a> <span class="src-str">'<tr>' </span>.</div></li>
<li><div class="src-line"><a name="a139"></a> <span class="src-str">'<th>' </span>. <span class="src-str">'Total du temps écoulé (en s.)' </span>. <span class="src-str">'</th>' </span>.</div></li>
<li><div class="src-line"><a name="a140"></a> <span class="src-str">'<td colspan="2">' </span>.</div></li>
<li><div class="src-line"><a name="a141"></a> <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$total_tps_ecoule</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">, </span><span class="src-str">','</span><span class="src-sym">, </span><span class="src-str">' '</span><span class="src-sym">) </span>. <span class="src-str">'</td>' </span>.</div></li>
<li><div class="src-line"><a name="a142"></a> <span class="src-str">'</tr>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a143"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-sym">(</span><span class="src-var">$indentation_origine </span>+ <span class="src-sym">(</span><span class="src-var">$indentation </span>* <span class="src-num">1</span><span class="src-sym">))) </span>.</div></li>
<li><div class="src-line"><a name="a144"></a> <span class="src-str">'</tfoot>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a145"></a> <span class="src-var">$sortie </span>.= <span class="src-var">$tbody</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a146"></a> <span class="src-var">$sortie </span>.= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">, </span><span class="src-var">$indentation_origine</span><span class="src-sym">) </span>.</div></li>
<li><div class="src-line"><a name="a147"></a> <span class="src-str">'</table>' </span>. <span class="src-str">"\n"</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a148"></a> </div></li>
<li><div class="src-line"><a name="a149"></a> <span class="src-key">return </span><span class="src-var">$sortie</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a150"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a151"></a><span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a152"></a><span class="src-php">?></span></div></li>
</ol>
</div>
<div class="credit">
<hr />
Documentation generated on Thu, 04 Mar 2010 19:27:29 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>