Subversion Repositories Applications.framework

Rev

Rev 300 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
159 jpm 1
<html>
2
<head>
3
<title>Docs For Class Chronometre</title>
4
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
5
<link rel="stylesheet" type="text/css" href="../media/style.css">
6
</head>
7
<body>
8
 
9
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
10
  <tr>
11
    <td class="header_top">Framework</td>
12
  </tr>
13
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
14
  <tr>
15
    <td class="header_menu">
16
 
17
 
297 jpm 18
                                                                      		  [ <a href="../classtrees_Framework.html" class="menu">class tree: Framework</a> ]
159 jpm 19
		  [ <a href="../elementindex_Framework.html" class="menu">index: Framework</a> ]
20
		  	    [ <a href="../elementindex.html" class="menu">all elements</a> ]
21
    </td>
22
  </tr>
23
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
24
</table>
25
 
26
<table width="100%" border="0" cellpadding="0" cellspacing="0">
27
  <tr valign="top">
28
    <td width="200" class="menu">
297 jpm 29
	<div id="todolist">
30
			<p><a href="../todolist.html">Todo List</a></p>
31
	</div>
159 jpm 32
      <b>Packages:</b><br />
33
              <a href="../li_Framework.html">Framework</a><br />
297 jpm 34
              <a href="../li_Utilitaire.html">Utilitaire</a><br />
35
              <a href="../li_Zend_OpenId.html">Zend_OpenId</a><br />
159 jpm 36
            <br /><br />
37
                        <b>Files:</b><br />
38
      	  <div class="package">
297 jpm 39
			<a href="../Framework/_Bdd.php.html">		Bdd.php
159 jpm 40
		</a><br>
297 jpm 41
			<a href="../Framework/_Cache.php.html">		Cache.php
159 jpm 42
		</a><br>
297 jpm 43
			<a href="../Framework/_CacheFichier.php.html">		CacheFichier.php
44
		</a><br>
45
			<a href="../Framework/_CacheSimple.php.html">		CacheSimple.php
46
		</a><br>
47
			<a href="../Framework/_CacheSqlite.php.html">		CacheSqlite.php
48
		</a><br>
159 jpm 49
			<a href="../Framework/_Chronometre.php.html">		Chronometre.php
50
		</a><br>
297 jpm 51
			<a href="../Framework/_Cli.php.html">		Cli.php
52
		</a><br>
159 jpm 53
			<a href="../Framework/_Config.php.html">		Config.php
54
		</a><br>
55
			<a href="../Framework/_Controleur.php.html">		Controleur.php
56
		</a><br>
57
			<a href="../Framework/_Debug.php.html">		Debug.php
58
		</a><br>
297 jpm 59
			<a href="../Framework/_utilitaires---DiffieHellmanUtil.php.html">		DiffieHellmanUtil.php
60
		</a><br>
61
			<a href="../Framework/_Framework.php.html">		Framework.php
62
		</a><br>
159 jpm 63
			<a href="../Framework/_GestionnaireException.php.html">		GestionnaireException.php
64
		</a><br>
297 jpm 65
			<a href="../Framework/_I18n.php.html">		I18n.php
66
		</a><br>
159 jpm 67
			<a href="../Framework/_Log.php.html">		Log.php
68
		</a><br>
297 jpm 69
			<a href="../Framework/_OpenIdClient.php.html">		OpenIdClient.php
159 jpm 70
		</a><br>
71
			<a href="../Framework/_Registre.php.html">		Registre.php
72
		</a><br>
297 jpm 73
			<a href="../Framework/_RestClient.php.html">		RestClient.php
74
		</a><br>
75
			<a href="../Framework/_RestServeur.php.html">		RestServeur.php
76
		</a><br>
77
			<a href="../Framework/_RestService.php.html">		RestService.php
78
		</a><br>
79
			<a href="../Framework/_Script.php.html">		Script.php
80
		</a><br>
159 jpm 81
			<a href="../Framework/_SquelettePhp.php.html">		SquelettePhp.php
82
		</a><br>
83
			<a href="../Framework/_Url.php.html">		Url.php
84
		</a><br>
85
	  </div><br />
86
 
87
 
88
            <b>Classes:</b><br />
89
        <div class="package">
297 jpm 90
		    		<a href="../Framework/Bdd.html">Bdd</a><br />
91
	    		<a href="../Framework/Cache.html">Cache</a><br />
92
	    		<a href="../Framework/CacheFichier.html">CacheFichier</a><br />
93
	    		<a href="../Framework/CacheSimple.html">CacheSimple</a><br />
94
	    		<a href="../Framework/CacheSqlite.html">CacheSqlite</a><br />
159 jpm 95
	    		<a href="../Framework/Chronometre.html">Chronometre</a><br />
297 jpm 96
	    		<a href="../Framework/Cli.html">Cli</a><br />
159 jpm 97
	    		<a href="../Framework/Config.html">Config</a><br />
98
	    		<a href="../Framework/Controleur.html">Controleur</a><br />
99
	    		<a href="../Framework/Debug.html">Debug</a><br />
297 jpm 100
	    		<a href="../Framework/DiffieHellmanUtil.html">DiffieHellmanUtil</a><br />
101
	    		<a href="../Framework/Framework.html">Framework</a><br />
159 jpm 102
	    		<a href="../Framework/GestionnaireException.html">GestionnaireException</a><br />
297 jpm 103
	    		<a href="../Framework/I18n.html">I18n</a><br />
159 jpm 104
	    		<a href="../Framework/Log.html">Log</a><br />
297 jpm 105
	    		<a href="../Framework/OpenIdClient.html">OpenIdClient</a><br />
159 jpm 106
	    		<a href="../Framework/Registre.html">Registre</a><br />
297 jpm 107
	    		<a href="../Framework/RestClient.html">RestClient</a><br />
108
	    		<a href="../Framework/RestServeur.html">RestServeur</a><br />
109
	    		<a href="../Framework/RestService.html">RestService</a><br />
110
	    		<a href="../Framework/Script.html">Script</a><br />
159 jpm 111
	    		<a href="../Framework/SquelettePhp.html">SquelettePhp</a><br />
112
	    		<a href="../Framework/Url.html">Url</a><br />
113
	  </div>
114
                </td>
115
    <td>
116
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
117
 
118
<h1>Class: Chronometre</h1>
119
Source Location: /Chronometre.php<br /><br />
120
 
121
 
122
<table width="100%" border="0">
123
<tr><td valign="top">
124
 
125
<h3><a href="#class_details">Class Overview</a></h3>
126
<pre></pre><br />
297 jpm 127
<div class="description">Chronometre permet de stocker et d'afficher les temps d'éxécution de script.</div><br /><br />
159 jpm 128
<h4>Author(s):</h4>
129
<ul>
130
          <li>Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</li>
297 jpm 131
                                    </ul>
159 jpm 132
 
133
 
134
 
135
 
136
 
137
 
297 jpm 138
 
159 jpm 139
<h4>Version:</h4>
140
<ul>
297 jpm 141
  <li>$Id: Chronometre.php 241 2010-12-06 15:19:07Z jpm $</li>
159 jpm 142
</ul>
143
 
144
<h4>Copyright:</h4>
145
<ul>
297 jpm 146
  <li>Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)</li>
159 jpm 147
</ul>
148
 
149
</td>
150
 
151
 
152
 
153
<td valign="top">
154
<h3><a href="#class_methods">Methods</a></h3>
155
<ul>
156
    <li><a href="../Framework/Chronometre.html#methodafficherChrono">afficherChrono</a></li>
297 jpm 157
    <li><a href="../Framework/Chronometre.html#methodchrono">chrono</a></li>
159 jpm 158
  </ul>
159
</td>
160
 
161
</tr></table>
162
<hr />
163
 
164
<table width="100%" border="0"><tr>
165
 
166
 
167
 
168
 
169
 
170
 
171
</tr></table>
172
<hr />
173
 
174
<a name="class_details"></a>
175
<h3>Class Details</h3>
176
<div class="tags">
297 jpm 177
[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a17">17</a>]<br />
178
Chronometre permet de stocker et d'afficher les temps d'éxécution de script.<br /><br /><p>Cette classe permet de réaliser un ensemble de mesure de temps prises à différents endroits d'un script.  Ces mesures peuvent ensuite être affichées au sein d'un tableau XHTML.</p><br /><br /><br />
159 jpm 179
<h4>Tags:</h4>
180
<div class="tags">
181
<table border="0" cellspacing="0" cellpadding="0">
182
  <tr>
183
    <td><b>author:</b>&nbsp;&nbsp;</td><td>Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</td>
184
  </tr>
185
  <tr>
297 jpm 186
    <td><b>version:</b>&nbsp;&nbsp;</td><td>$Id: Chronometre.php 241 2010-12-06 15:19:07Z jpm $</td>
159 jpm 187
  </tr>
188
  <tr>
297 jpm 189
    <td><b>copyright:</b>&nbsp;&nbsp;</td><td>Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)</td>
159 jpm 190
  </tr>
191
  <tr>
192
    <td><b>link:</b>&nbsp;&nbsp;</td><td>/doc/framework/</td>
193
  </tr>
194
  <tr>
297 jpm 195
    <td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL-v2</a></td>
159 jpm 196
  </tr>
297 jpm 197
  <tr>
198
    <td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL-v3</a></td>
199
  </tr>
159 jpm 200
</table>
201
</div>
202
</div><br /><br />
203
<div class="top">[ <a href="#top">Top</a> ]</div><br />
204
 
205
 
206
<hr />
207
<a name="class_methods"></a>
208
<h3>Class Methods</h3>
209
<div class="tags">
210
  <hr />
211
	<a name="methodafficherChrono"></a>
297 jpm 212
	<h3>static method afficherChrono <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a75">75</a>]</span></h3>
159 jpm 213
	<div class="function">
214
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
215
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
297 jpm 216
		<code>static string afficherChrono(
217
[string
218
$cle = null])</code>
159 jpm 219
    </td></tr></table>
220
    </td></tr></table><br />
221
 
297 jpm 222
		Permet d'afficher les temps d'éxécution de différentes parties d'un script.<br /><br /><p>Cette fonction permet d'afficher un ensemble de  mesure de temps prises à différents endroits d'un script.  Ces mesures sont affichées au sein d'un tableau XHTML dont on peut controler l'indentation des balises.  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.</p><br /><br /><br />
159 jpm 223
<h4>Tags:</h4>
224
<div class="tags">
225
<table border="0" cellspacing="0" cellpadding="0">
226
  <tr>
227
    <td><b>return:</b>&nbsp;&nbsp;</td><td>la chaine XHTML de mesure des temps.</td>
228
  </tr>
229
  <tr>
230
    <td><b>author:</b>&nbsp;&nbsp;</td><td>Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</td>
231
  </tr>
232
  <tr>
233
    <td><b>author:</b>&nbsp;&nbsp;</td><td>Loic d'Anterroches</td>
234
  </tr>
235
  <tr>
236
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
237
  </tr>
238
</table>
239
</div>
240
<br /><br />
241
 
242
 
243
        <h4>Parameters:</h4>
244
    <div class="tags">
245
    <table border="0" cellspacing="0" cellpadding="0">
246
          <tr>
297 jpm 247
        <td class="type">string&nbsp;&nbsp;</td>
248
        <td><b>$cle</b>&nbsp;&nbsp;</td>
249
        <td>l'eventuel nom du point de chronométrage de fin.</td>
159 jpm 250
      </tr>
251
        </table>
252
    </div><br />
253
        <div class="top">[ <a href="#top">Top</a> ]</div>
254
  </div>
255
  <hr />
297 jpm 256
	<a name="methodchrono"></a>
257
	<h3>static method chrono <span class="smalllinenumber">[line <a href="../__filesource/fsource_Framework__Chronometre.php.html#a53">53</a>]</span></h3>
159 jpm 258
	<div class="function">
259
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
260
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
297 jpm 261
		<code>static null chrono(
159 jpm 262
[string
263
$cle = null])</code>
264
    </td></tr></table>
265
    </td></tr></table><br />
266
 
297 jpm 267
		Effectue un chronometrage.<br /><br /><p>Vous pouvez indiquer le nom du point de chronométrage.  Si vous n'indiquez rien, un nombre sera généré en débutant à 1.</p><br /><br /><br />
159 jpm 268
<h4>Tags:</h4>
269
<div class="tags">
270
<table border="0" cellspacing="0" cellpadding="0">
271
  <tr>
272
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
273
  </tr>
274
</table>
275
</div>
276
<br /><br />
277
 
278
 
279
        <h4>Parameters:</h4>
280
    <div class="tags">
281
    <table border="0" cellspacing="0" cellpadding="0">
282
          <tr>
283
        <td class="type">string&nbsp;&nbsp;</td>
284
        <td><b>$cle</b>&nbsp;&nbsp;</td>
297 jpm 285
        <td>le nom du point de chronométrage</td>
159 jpm 286
      </tr>
287
        </table>
288
    </div><br />
289
        <div class="top">[ <a href="#top">Top</a> ]</div>
290
  </div>
291
 
292
</div><br />
293
 
294
 
295
        <div class="credit">
296
		    <hr />
302 jpm 297
		    Documentation generated on Tue, 18 Jan 2011 15:31:13 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
159 jpm 298
	      </div>
299
      </td></tr></table>
300
    </td>
301
  </tr>
302
</table>
303
 
304
</body>
305
</html>