24 lines
No EOL
424 B
PHP
24 lines
No EOL
424 B
PHP
<?php
|
|
|
|
class Fiktiv_Performance
|
|
{
|
|
|
|
protected static $_start = null;
|
|
protected static $_end = null;
|
|
|
|
public static function begin()
|
|
{
|
|
self::$_start = microtime(true);
|
|
}
|
|
|
|
public static function end()
|
|
{
|
|
self::$_end = microtime(true);
|
|
return self::$_end - self::$_start;
|
|
}
|
|
|
|
public static function results()
|
|
{
|
|
return self::$_end - self::$_start;
|
|
}
|
|
} |