diff --git a/application/modules/default/views/layout/default.phtml b/application/modules/default/views/layout/default.phtml index cf217c7..857a5a4 100644 --- a/application/modules/default/views/layout/default.phtml +++ b/application/modules/default/views/layout/default.phtml @@ -7,7 +7,7 @@ headScript() ?> - +
@@ -37,4 +37,4 @@
- \ No newline at end of file + diff --git a/db.mwb b/db.mwb index 9b28c51..a39d410 100644 Binary files a/db.mwb and b/db.mwb differ diff --git a/library/Fiktiv/Performance.php b/library/Fiktiv/Performance.php index e032e63..eeb8610 100644 --- a/library/Fiktiv/Performance.php +++ b/library/Fiktiv/Performance.php @@ -2,20 +2,26 @@ class Fiktiv_Performance { - + /** + * @var float + */ protected static $_start = null; - protected static $_end = null; protected static $_result = null; + /** + * @return void + */ public static function begin() { self::$_start = microtime(true); } + /** + * @return float + */ public static function end() { - self::$_end = microtime(true); - self::$_result = self::$_end - self::$_start; + self::$_result = microtime(true) - self::$_start; return self::result(); } @@ -35,11 +41,11 @@ class Fiktiv_Performance 'results' => array() ); - for ($x=0;$x<$times;$x++) { + for($x=0; $x < $times; $x++) { self::begin(); - for ($y=0;$y<$iterations;$y++) { + for($y=0; $y < $iterations; $y++) { call_user_func_array($function, $params); } @@ -47,12 +53,13 @@ class Fiktiv_Performance $result['total'] += self::result(); - if ($result['min'] > self::result() || empty($result['min'])) + if ($result['min'] > self::result() || empty($result['min'])) { $result['min'] = self::result(); + } - if ($result['max'] < self::result()) + if ($result['max'] < self::result()) { $result['max'] = self::result(); - + } } $result['avg'] = array_sum($result['results']) / count($result['results']); @@ -60,4 +67,4 @@ class Fiktiv_Performance return $result; } -} \ No newline at end of file +}