Gets the duration of the tests execution in seconds.

Namespace:  Gallio.MSBuildTasks
Assembly:  Gallio.MSBuildTasks (in Gallio.MSBuildTasks.dll) Version: 3.3.0.0 (3.3.459.0)

Syntax

C#
public double Duration { get; private set; }
Visual Basic (Declaration)
Public Property Duration As Double

Examples

To use this property, you need to include an Output tag within the Gallio tag to specify a name to reference it:
CopyC#
<Gallio>
     <!-- This tells MSBuild that the task's Duration output property will
          be made available as a property called Duration in the project
          after the tests have been run: -->
    <Output TaskParameter="Duration" PropertyName="Duration" />
</Gallio>
<!-- After execution the duration can be retrieved like this: -->
<Message Text="The tests took $(Duration)s to execute." />

See Also