/// <summary> /// Constructs <see cref="CPUResults"/> with /// a <see cref="RipperSettings"/> instance. /// </summary> /// <param name="rs">Takes in an initial <see cref="RipperSettings"/> /// but is marked <see langword="readonly"/> internally.</param> /// <param name="userData">The <see cref="UserData"/> to get the /// UserType from.</param> /// <param name="threadType">The thread type for the test.</param> public CPUResults(RipperSettings rs, ref UserData userData, ThreadType threadType) { this.TestCollection = new List <TimeSpan>(); this.rs = rs; this.userData = userData; this.totalDuration = new TimeSpan(); this.GetThreadType = threadType; }
/// <summary> /// Constructs <see cref="DiskResults"/> with /// a <see cref="RipperSettings"/> instance. /// </summary> /// <param name="rs">Takes in an initial <see cref="RipperSettings"/> /// but is marked <see langword="readonly"/> internally.</param> /// <param name="userData">The <see cref="UserData"/> thats passed /// into the instance for user information but is marked /// <see langword="readonly"/> internally.</param> public DiskResults(RipperSettings rs, ref UserData userData) { this.TestCollection = new List <TimeSpan>(); this.rs = rs; this.userData = userData; }