Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VONDERSCHER William
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Commits
e7e24244
Commit
e7e24244
authored
Mar 11, 2020
by
SASSU Thomas
Browse files
merge
parents
4e296f35
96e8937f
Changes
2
Hide whitespace changes
Inline
Side-by-side
GamePedia/php/script_TD3a.php
View file @
e7e24244
...
...
@@ -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
GamePedia/src/controleurs/ControleurScript.php
View file @
e7e24244
...
...
@@ -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
);
Game
::
get
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment