StopwatchTokenParser::decideStopwatchEnd()

decideStopwatchEnd(Twig_Token $token) Parameters Twig_Token $token

StopwatchPeriod::getEndTime()

int getEndTime() Gets the relative time of the end of the period. Return Value int The time (in milliseconds)

StopwatchPeriod::getStartTime()

int getStartTime() Gets the relative time of the start of the period. Return Value int The time (in milliseconds)

StopwatchPeriod::getMemory()

int getMemory() Gets the memory usage. Return Value int The memory usage (in bytes)

StopwatchPeriod::getDuration()

int getDuration() Gets the time spent in this period. Return Value int The period duration (in milliseconds)

StopwatchTokenParser

class StopwatchTokenParser extends Twig_TokenParser Token Parser for the stopwatch tag. Methods __construct($stopwatchIsAvailable) parse(Twig_Token $token) decideStopwatchEnd(Twig_Token $token) getTag() Details __construct($stopwatchIsAvailable) Parameters $stopwatchIsAvailable parse(Twig_Token $token) Parameters Twig_Token $token decideStopwatchEnd

StopwatchNode

class StopwatchNode extends Twig_Node Represents a stopwatch node. Methods __construct(Twig_Node $name, Twig_Node $body, Twig_Node_Expression_AssignName $var, $lineno, $tag = null) compile(Twig_Compiler $compiler) Details __construct(Twig_Node $name, Twig_Node $body, Twig_Node_Expression_AssignName $var, $lineno, $tag = null) Parameters Twig_Node $name Twig_Node $body Twig_Node_Expression_AssignName $var $lineno $tag

StopwatchPeriod

class StopwatchPeriod Represents an Period for an Event. Methods __construct(int $start, int $end) Constructor. int getStartTime() Gets the relative time of the start of the period. int getEndTime() Gets the relative time of the end of the period. int getDuration() Gets the time spent in this period. int getMemory() Gets the memory usage. Details __construct(int $start, int $end) Constructor. Parameters int $start The rel

StopwatchHelper

class StopwatchHelper extends Helper StopwatchHelper provides methods time your PHP templates. Methods setCharset(string $charset) Sets the default charset. from Helper string getCharset() Gets the default charset. from Helper __construct(Stopwatch $stopwatch = null) string getName() Returns the canonical name of this helper. __call($method, $arguments = array()) Details setCharset(string $charset) Sets the default charset.

StopwatchExtension::getTokenParsers()

getTokenParsers()