Skip to content

Instantly share code, notes, and snippets.

@genghisjahn
Last active December 21, 2015 22:59
Show Gist options
  • Save genghisjahn/6379459 to your computer and use it in GitHub Desktop.
Save genghisjahn/6379459 to your computer and use it in GitHub Desktop.
private static void RunTest(dynamic service,string name, int num1, int num2, ConsoleColor color)
{
Console.ForegroundColor = color;
DateTime start = DateTime.UtcNow;
Console.WriteLine("{0}: {1} + {2} = ",name, num1, num2);
var local = service.AddThis(num1, num2);
Console.WriteLine("{0} Answer: {1}",name, local);
DateTime end = DateTime.UtcNow;
Console.WriteLine("{0} Ticks: {1}",name, GetDiff(start, end));
Console.WriteLine("-----");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment