@@ -21,7 +21,7 @@ public struct Measurement : IComparable<Measurement>
2121 private const string OpSymbol = "op" ;
2222 private const string SBSymbol = "B" ;
2323
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 ) ;
2525
2626 private static readonly int IterationInfoNameMaxWidth
2727 = 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
4949 /// </summary>
5050 public long SurvivedBytes { get ; }
5151
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+
5264 /// <summary>
5365 /// Creates an instance of <see cref="Measurement"/> struct.
5466 /// </summary>
0 commit comments