summaryrefslogtreecommitdiff
path: root/buildscripts/Benchmark/doc/timer_example.php
diff options
context:
space:
mode:
authorctrlaltca <ctrlaltca@gmail.com>2016-04-04 18:31:02 +0200
committerctrlaltca <ctrlaltca@gmail.com>2016-04-04 18:31:02 +0200
commit7e255537404cb6ceb5465589c87897781358bc59 (patch)
treec6655e104b4be4ced6acaf914c2eee87452d3c4c /buildscripts/Benchmark/doc/timer_example.php
parent0ec0d073c120a2db371dfd4cd6f2a81fd9068676 (diff)
parentba0b0923f7520d6cd35373679aed963d1318074a (diff)
Merge pull request #578 from pradosoft/scrutinizer
Misc code fixes suggested by Scrutinizer
Diffstat (limited to 'buildscripts/Benchmark/doc/timer_example.php')
-rw-r--r--buildscripts/Benchmark/doc/timer_example.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/buildscripts/Benchmark/doc/timer_example.php b/buildscripts/Benchmark/doc/timer_example.php
deleted file mode 100644
index ff9de936..00000000
--- a/buildscripts/Benchmark/doc/timer_example.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-require '../Timer.php';
-
-function wait($amount) {
- for ($i=0; $i < $amount; $i++) {
- for ($i=0; $i < 100; $i++);
- }
-}
-// Pass the param "true" to constructor to automatically display the results
-$timer = new Benchmark_Timer();
-$timer->start();
-wait(10);
-$timer->setMarker('Mark1');
-echo "Elapsed time between Start and Mark1: " .
- $timer->timeElapsed('Start', 'Mark1') . "\n";
-wait(50);
-$timer->stop();
-$timer->display();