PHP Class Jarves\StopwatchHelper

显示文件 Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$stopwatch Symfony\Component\Stopwatch\Stopwatch

Public Methods

Method Description
__construct ( $stopwatch = null )
getStopwatch ( ) : Symfony\Component\Stopwatch\Stopwatch
lap ( string $name )
setStopwatch ( Symfony\Component\Stopwatch\Stopwatch $stopwatch )
start ( string $name, string $category = null )
stop ( string $name )

Method Details

__construct() public method

public __construct ( $stopwatch = null )

getStopwatch() public method

public getStopwatch ( ) : Symfony\Component\Stopwatch\Stopwatch
return Symfony\Component\Stopwatch\Stopwatch

lap() public method

public lap ( string $name )
$name string

setStopwatch() public method

public setStopwatch ( Symfony\Component\Stopwatch\Stopwatch $stopwatch )
$stopwatch Symfony\Component\Stopwatch\Stopwatch

start() public method

public start ( string $name, string $category = null )
$name string
$category string

stop() public method

public stop ( string $name )
$name string

Property Details

$stopwatch protected_oe property

protected Stopwatch,Symfony\Component\Stopwatch $stopwatch
return Symfony\Component\Stopwatch\Stopwatch