Add namespace.

This commit is contained in:
2014-06-02 18:58:49 +04:00
parent aec1a60985
commit 1ba341b064
159 changed files with 265 additions and 264 deletions

View File

@ -0,0 +1,44 @@
<?php namespace Majestic\Util\Profiler;
/**
* @copyright NetMonsters <team@netmonsters.ru>
* @link http://netmonsters.ru
* @package Majestic
* @subpackage util
* @since 2010-03-09
*/
class CommandProfiler
{
protected $type;
protected $command = '';
protected $start = null;
protected $end = null;
public function __construct($type, $command)
{
$this->type = $type;
$this->command = $command;
$this->start = microtime(true);
}
public function end()
{
$this->end = microtime(true);
}
public function getCommand()
{
return $this->command;
}
public function getType()
{
return $this->type;
}
public function getElapsed()
{
return $this->end - $this->start;
}
}