Commit e7e24244 authored by SASSU Thomas's avatar SASSU Thomas
Browse files


parents 4e296f35 96e8937f
......@@ -45,4 +45,9 @@ echo 'Cache de requete mysql, tous les jeux: ';
echo $c->allGame();
echo 'µs .<br>';
echo'index : <br>';
echo 'jeux qui commencent par Ma :'.$c->td3_index('Ma').'<br>';
echo 'jeux qui commencent par Ac :'.$c->td3_index('Ac').'<br>';
echo 'jeux qui commencent par Pr :'.$c->td3_index('Pr');
echo ("</body> </html>");
\ No newline at end of file
......@@ -307,6 +307,14 @@ class ControleurScript
return $res;
public function td3_index($val){
$time_start = microtime(true);
Game::where('name', 'like', $val.'%')->get();
$time_end = microtime(true);
$time = $time_end - $time_start;
return $time;
public function allGame(){
$time_start = microtime(true);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment