Subversion Repositories Applications.framework

Rev

Rev 233 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 233 Rev 277
Line 1... Line 1...
1
<?php
1
<?php
2
$temps_debut = microtime(true);
-
 
3
// Encodage : UTF-8
2
// Encodage : UTF-8
-
 
3
// Permet d'afficher le temps d'execution du service
-
 
4
$temps_debut = (isset($_GET['chrono']) && $_GET['chrono'] == 1) ? microtime(true) : '';
4
// +-------------------------------------------------------------------------------------------------------------------+
5
// +-------------------------------------------------------------------------------------------------------------------+
5
/**
6
/**
6
* Serveur
7
* Serveur
7
*
8
*
8
* Description : initialise le chargement et l'exécution des services web.
9
* Description : initialise le chargement et l'exécution des services web.
Line 30... Line 31...
30
	Framework::setInfoAppli(Config::get('info'));
31
	Framework::setInfoAppli(Config::get('info'));
Line 31... Line 32...
31
	
32
	
32
	// Initialisation et lancement du serveur
33
	// Initialisation et lancement du serveur
33
	$Serveur = new Serveur();
34
	$Serveur = new Serveur();
-
 
35
	$Serveur->executer();
-
 
36
	
-
 
37
	// Affiche le temps d'execution du service
34
	$Serveur->executer();
38
	if (isset($_GET['chrono']) && $_GET['chrono'] == 1) {
35
	$temps_fin = microtime(true);
39
		$temps_fin = microtime(true);
-
 
40
		echo 'Temps d\'execution : '.round($temps_fin - $temps_debut, 4);
36
	echo 'Temps d\'execution : '.round($temps_fin - $temps_debut, 4);
41
	}
37
}
42
}
38
?>
43
?>