Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 186 → Rev 187

/trunk/api/debogage/BOG_chrono.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: BOG_chrono.fonct.php,v 1.1 2004-06-15 10:13:07 jpm Exp $
// CVS : $Id: BOG_chrono.fonct.php,v 1.2 2004-11-29 15:54:16 jpm Exp $
/**
* Bibliothèque de fonctions permettant de mesure le temps d'execution d'un script.
*
31,7 → 31,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2004-06-15 10:13:07 $
*@version $Revision: 1.2 $ $Date: 2004-11-29 15:54:16 $
// +------------------------------------------------------------------------------------------------------+
*/
 
45,6 → 45,7
* Pour un site en production, il suffit d'ajouter un style #chrono {display:none;} dans la css. De cette façon,
* le tableau ne s'affichera pas. Le webmaster lui pourra rajouter sa propre feuille de style affichant le tableau.
* Le développeur initial de cette fonction est Loic d'Anterroches. Elle a été modifiée par Jean-Pascal Milcent.
* Elle utilise une variable gobale : $_CHRONO_
*
* @author Loic d'Anterroches
* @param int l'indentation de base pour le code html du tableau.
53,8 → 54,6
*/
function BOG_afficherChrono($indentation_origine = 8, $indentation = 4)
{
global $chrono_flash;
 
$sortie = str_repeat(' ', $indentation_origine).
'<table id="chrono" lang="fr" summary="Résultat du chronométrage du programme affichant la page actuelle.">'."\n";
$sortie .= str_repeat(' ', ($indentation_origine + ($indentation * 1))).
70,11 → 69,11
'<tbody>'."\n";
$total_tps_ecoule = 0;
// Récupération de la première mesure
list($usec, $sec) = explode(' ',$chrono_flash['depart']);
list($usec, $sec) = explode(' ', $GLOBALS['_CHRONO_']['depart']);
// Ce temps correspond à tps_fin
$tps_fin = ((float)$usec + (float)$sec);
foreach ($chrono_flash as $cle => $valeur) {
foreach ($GLOBALS['_CHRONO_'] as $cle => $valeur) {
list($usec, $sec) = explode(' ',$valeur);
$tps_debut = ((float)$usec + (float)$sec);
111,6 → 110,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2004/06/15 10:13:07 jpm
* Intégration dans Papyrus.
*
* Revision 1.2 2004/04/22 09:01:55 jpm
* Ajout de l'attribut lang au tableau.
*