C.76 StopwatchTask

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

Table C.102: Attributes

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

C.76.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" />