예제 #1
0
        static void Main(string[] args)
        {
            Stopwatch stopwatch = new Stopwatch();

            while (true)
            {
                string s = Console.ReadLine();
                stopwatch.Start();
                Console.WriteLine(SimpleExpression.Calculate(s));
                stopwatch.Stop();
                Console.WriteLine("用时:" + stopwatch.ElapsedMilliseconds + "ms");
                stopwatch.Reset();
            }
        }