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>
$c = new ControleurScript();
echo $c->allGame();
echo '<br>';
echo $c->gameMario();
echo '<br>';
echo $c->gameDebMario();
echo '<br>';
echo $c->gameDebMarioRate();
echo ("</body> </html>");
\ No newline at end of file
......@@ -241,7 +241,10 @@ class ControleurScript
public function gameDebMario(){
$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 = $time_end - $time_start;
return $time;
......@@ -255,5 +258,4 @@ class ControleurScript
return $time;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment