C.104 StopwatchTask

The StopwatchTask provides an easy way to measure execution time of phing tasks.

Table C.137: Attributes

NameTypeDescriptionDefaultRequired
nameStringName of the timer. Yes
categoryStringSet a category for the timer. No
actionStringAction could be one of start, stop or lapstartNo

C.104.1 Example

<stopwatch name="test" />
<!-- some other task... -->
<stopwatch name="test" action="lap" />
<!-- some other task... -->
<stopwatch name="test" action="lap" />
<!-- some other task... -->
<stopwatch name="test" action="lap" />
<!-- some other task... -->
<stopwatch name="test" action="stop" />