public static string GetResultsPercent()
{
double total = 0;
foreach (KeyValuePair<string, Stopwatch> kvp in AllStopwatches)
{
total += kvp.Value.Elapsed.TotalMilliseconds;
}
StringBuilder sb = new StringBuilder();
foreach (KeyValuePair<string, Stopwatch> kvp in AllStopwatches)
{
sb.AppendLine(kvp.Key + '\t' + (kvp.Value.Elapsed.TotalMilliseconds / total).ToString("0.0%"));
}
return sb.ToString();
}
}