Last active
December 21, 2015 22:59
-
-
Save genghisjahn/6379459 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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