public long[] GenerationTimeTest()
        {
            long[] results = new long[TESTS_TO_RUN];
            timer = new Stopwatch();
            for (int i=0; i<TESTS_TO_RUN; i++)
            {
                gen = new WSGenerator(new string[0]);

                timer.Reset();
                timer.Start();
                gen.Commands = "g --default";
                timer.Stop();
                results[i] = timer.ElapsedMilliseconds;
            }
            return results;
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            WSGenerator gen = new WSGenerator(args);
            Console.WriteLine(Lang.Welcome[gen.lang]);

            while((gen.State&WSGenerator.READY) == WSGenerator.READY)
            {
                Console.Write(Lang.ReadyPrompt);
                gen.Commands = Console.ReadLine();
            }
        }