Exemplo n.º 1
0
        static void Main(string[] args)
        {
            CommandClient client = new CommandClient();

            Stopwatch sw = Stopwatch.StartNew();
            client.SaveCommand("Loading");
            Console.WriteLine("Time = {0}", sw.ElapsedMilliseconds);

            Stopwatch sw2 = Stopwatch.StartNew();
            client.SaveCommandOneWay("Loading");
            Console.WriteLine("Time One Way = {0}", sw2.ElapsedMilliseconds);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            CommandClient client = new CommandClient();

            Stopwatch sw = Stopwatch.StartNew();

            client.SaveCommand("Loading");
            Console.WriteLine("Time = {0}", sw.ElapsedMilliseconds);

            Stopwatch sw2 = Stopwatch.StartNew();

            client.SaveCommandOneWay("Loading");
            Console.WriteLine("Time One Way = {0}", sw2.ElapsedMilliseconds);
        }