/// <summary> /// Retreives the current machine operating system information. /// </summary> /// <returns><see cref="PerfOs"/> object describing the current /// operation system</returns> public static PerfOs GetCurrent() { lock(typeof(PerfOs)) { PerfOs cur = new PerfOs(); cur.Name = Environment.OSVersion.Platform.ToString(); cur.Version = Environment.Version.ToString(); return cur; } }
public PerfTestSuite(Type testerType, string description, string featureDescription) { if (testerType==null) throw new ArgumentNullException("testerType"); this.timeStamp = DateTime.Now; this.name = testerType.Name; this.description = description; this.featureDescription = featureDescription; this.tests = new PerfTestCollection(); this.machine = PerfMachine.GetCurrent(); this.os = PerfOs.GetCurrent(); }