Joutsen v0.5.0+12-g5dd5f7e
Public Member Functions | Properties | List of all members
Joutsen.Diagnostics.TimerRun Class Reference

A class representing a single run of a performance test with a certain number of repetitions. More...

Public Member Functions

 TimerRun ()
 
void AddResult (TimeSpan runtime)
 Adds a runtime result. More...
 
override String ToString ()
 Creates a string representation of this test run. More...
 

Properties

Listable< TimeSpan > RunResults [get]
 The results of the different test runs. More...
 
TimeSpan AverageRunTime [get]
 The average elapsed time of the different test runs of this result. More...
 
TimeSpan MaxRunTime [get]
 The maximum elapsed time of the different test runs of this result. More...
 
TimeSpan MinRunTime [get]
 The minimum elapsed time of the different test runs of this result. More...
 
TimeSpan TotalRuntimeOfAllRuns [get]
 The total elapsed time of all the test runs. More...
 

Detailed Description

A class representing a single run of a performance test with a certain number of repetitions.

Since
0.3.0

Constructor & Destructor Documentation

◆ TimerRun()

Joutsen.Diagnostics.TimerRun.TimerRun ( )

Member Function Documentation

◆ AddResult()

void Joutsen.Diagnostics.TimerRun.AddResult ( TimeSpan  runtime)

Adds a runtime result.

Parameters
runtimethe elapsed time for one run

◆ ToString()

override String Joutsen.Diagnostics.TimerRun.ToString ( )

Creates a string representation of this test run.

Returns
a string representation of this test run

Property Documentation

◆ AverageRunTime

TimeSpan Joutsen.Diagnostics.TimerRun.AverageRunTime
get

The average elapsed time of the different test runs of this result.

◆ MaxRunTime

TimeSpan Joutsen.Diagnostics.TimerRun.MaxRunTime
get

The maximum elapsed time of the different test runs of this result.

◆ MinRunTime

TimeSpan Joutsen.Diagnostics.TimerRun.MinRunTime
get

The minimum elapsed time of the different test runs of this result.

◆ RunResults

Listable<TimeSpan> Joutsen.Diagnostics.TimerRun.RunResults
get

The results of the different test runs.

◆ TotalRuntimeOfAllRuns

TimeSpan Joutsen.Diagnostics.TimerRun.TotalRuntimeOfAllRuns
get

The total elapsed time of all the test runs.