summaryrefslogtreecommitdiff
path: root/core/classes/Benchmark.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-25 09:30:37 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-25 09:30:37 +0300
commita3dc1f0f55003ca2fb325ed2e3f974094f6cad2e (patch)
tree09aa5f8208460c5c2883209d7139d59ba2d623e3 /core/classes/Benchmark.php
parent2b1f4aed56c5bfbf014f3f871e9dcc336b5a31b7 (diff)
downloadgyraf1gov-a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e.tar.gz
gyraf1gov-a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e.tar.bz2
gyraf1gov-a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e.zip
break form scripts in parts; first pdf example
Diffstat (limited to 'core/classes/Benchmark.php')
-rw-r--r--core/classes/Benchmark.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/classes/Benchmark.php b/core/classes/Benchmark.php
index 8aa040d..a8b4145 100644
--- a/core/classes/Benchmark.php
+++ b/core/classes/Benchmark.php
@@ -52,7 +52,8 @@ class Benchmark {
/** add_timespot
* ---
* add new timespot
- * @param $key : label of timespot
+ *
+ * @param string $key : label of timespot
*/
public static function add_spot(string $key)
{
@@ -62,7 +63,10 @@ class Benchmark {
/** exist
+ * ---
* checks if a benchmark spot with label $key exists
+ *
+ * @param string $key : label of timespot
*/
public static function exist(string $key) : bool
{
@@ -71,7 +75,8 @@ class Benchmark {
/** desableReport
- * (Self-explanatory)
+ * ---
+ * desables report exporting
*/
public static function disableReport()
{
@@ -84,7 +89,7 @@ class Benchmark {
* renders performance report
* as html comment at the end of webpage in various modes
*
- * @param $mode (int): report format id
+ * @param int $mode: report format id
* ... default: BENCH_REPORT_COMMENT (5) = report as html comment;
* ... for more report-formats check the BENCH_REPORT_* defines
*/
@@ -198,9 +203,9 @@ class Benchmark {
$output .= $suffix;
- }
- return $output;
+ } else { return; }
+ return $output;
}
}