Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VONDERSCHER William
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Commits
e7e24244
Commit
e7e24244
authored
5 years ago
by
SASSU Thomas
Browse files
Options
Downloads
Plain Diff
merge
parents
4e296f35
96e8937f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GamePedia/php/script_TD3a.php
+5
-0
5 additions, 0 deletions
GamePedia/php/script_TD3a.php
GamePedia/src/controleurs/ControleurScript.php
+8
-0
8 additions, 0 deletions
GamePedia/src/controleurs/ControleurScript.php
with
13 additions
and
0 deletions
GamePedia/php/script_TD3a.php
+
5
−
0
View file @
e7e24244
...
@@ -45,4 +45,9 @@ echo 'Cache de requete mysql, tous les jeux: ';
...
@@ -45,4 +45,9 @@ echo 'Cache de requete mysql, tous les jeux: ';
echo
$c
->
allGame
();
echo
$c
->
allGame
();
echo
'µs .<br>'
;
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>"
);
echo
(
"</body> </html>"
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
GamePedia/src/controleurs/ControleurScript.php
+
8
−
0
View file @
e7e24244
...
@@ -307,6 +307,14 @@ class ControleurScript
...
@@ -307,6 +307,14 @@ class ControleurScript
return
$res
;
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
(){
public
function
allGame
(){
$time_start
=
microtime
(
true
);
$time_start
=
microtime
(
true
);
Game
::
get
();
Game
::
get
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment