@@ -21,7 +21,7 @@ public struct Measurement : IComparable<Measurement>
21
21
private const string OpSymbol = "op" ;
22
22
private const string SBSymbol = "B" ;
23
23
24
- private static Measurement Error ( ) => new Measurement ( - 1 , IterationMode . Unknown , IterationStage . Unknown , 0 , 0 , 0 , 0 ) ;
24
+ private static Measurement Error ( ) => new Measurement ( - 1 , IterationMode . Unknown , IterationStage . Unknown , 0 , 0 , 0 ) ;
25
25
26
26
private static readonly int IterationInfoNameMaxWidth
27
27
= Enum . GetNames ( typeof ( IterationMode ) ) . Max ( text => text . Length ) + Enum . GetNames ( typeof ( IterationStage ) ) . Max ( text => text . Length ) ;
@@ -49,6 +49,18 @@ private static readonly int IterationInfoNameMaxWidth
49
49
/// </summary>
50
50
public long SurvivedBytes { get ; }
51
51
52
+ /// <summary>
53
+ /// Creates an instance of <see cref="Measurement"/> struct.
54
+ /// </summary>
55
+ /// <param name="launchIndex"></param>
56
+ /// <param name="iterationMode"></param>
57
+ /// <param name="iterationStage"></param>
58
+ /// <param name="iterationIndex"></param>
59
+ /// <param name="operations">The number of operations performed.</param>
60
+ /// <param name="nanoseconds">The total number of nanoseconds it took to perform all operations.</param>
61
+ public Measurement ( int launchIndex , IterationMode iterationMode , IterationStage iterationStage , int iterationIndex , long operations , double nanoseconds )
62
+ : this ( launchIndex , iterationMode , iterationStage , iterationIndex , operations , nanoseconds , 0 ) { }
63
+
52
64
/// <summary>
53
65
/// Creates an instance of <see cref="Measurement"/> struct.
54
66
/// </summary>
0 commit comments