Skip to content
Snippets Groups Projects
Commit 913442bf authored by PERCIN Cahit's avatar PERCIN Cahit
Browse files

debut de la partie 1, 1 erreurs

parent 2cf3e430
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,11 @@ echo ("<!DOCTYPE html> ...@@ -25,8 +25,11 @@ echo ("<!DOCTYPE html>
$c = new ControleurScript(); $c = new ControleurScript();
echo $c->allGame(); echo $c->allGame();
echo '<br>';
echo $c->gameMario(); echo $c->gameMario();
echo '<br>';
echo $c->gameDebMario(); echo $c->gameDebMario();
echo '<br>';
echo $c->gameDebMarioRate(); echo $c->gameDebMarioRate();
echo ("</body> </html>"); echo ("</body> </html>");
\ No newline at end of file
...@@ -241,7 +241,10 @@ class ControleurScript ...@@ -241,7 +241,10 @@ class ControleurScript
public function gameDebMario(){ public function gameDebMario(){
$time_start = microtime(true); $time_start = microtime(true);
Game::where('name', 'like', "Mario%")->characters()->get(); $q= Game::where('name', 'like', "Mario%")->get();
foreach ($q as $game) {
$game->characters()->get();
}
$time_end = microtime(true); $time_end = microtime(true);
$time = $time_end - $time_start; $time = $time_end - $time_start;
return $time; return $time;
...@@ -255,5 +258,4 @@ class ControleurScript ...@@ -255,5 +258,4 @@ class ControleurScript
return $time; return $time;
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment