public void NormalTwoTaskReport()
        {
            var metric = new HiPerfMetric("NormalTwoTaskReport");
            metric.Start("task 1");
            Thread.Sleep(25);
            metric.Stop();
            metric.Start("task 2");
            Thread.Sleep(50);
            metric.Stop();

            var report = new DefaultReport
            {
                Metric = metric
            };
            Debug.WriteLine(report.Report());
        }
Example #2
0
 public static string ReportAsDefault(this HiPerfMetric hiPerfMetric)
 {
     var report = new DefaultReport {Metric = hiPerfMetric};
     return report.Report();
 }