From b59ab2490b1bb82dc1d0b58d89584182b405d0a0 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 19 Jun 2006 02:31:27 +0000 Subject: build script update. Fixed #82 and #165. --- buildscripts/Benchmark/doc/timer_example.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 buildscripts/Benchmark/doc/timer_example.php (limited to 'buildscripts/Benchmark/doc') diff --git a/buildscripts/Benchmark/doc/timer_example.php b/buildscripts/Benchmark/doc/timer_example.php new file mode 100644 index 00000000..93dd05c6 --- /dev/null +++ b/buildscripts/Benchmark/doc/timer_example.php @@ -0,0 +1,18 @@ +start(); +wait(10); +$timer->setMarker('Mark1'); +echo "Elapsed time between Start and Mark1: " . + $timer->timeElapsed('Start', 'Mark1') . "\n"; +wait(50); +$timer->stop(); +$timer->display(); -- cgit v1.2.3