BitMaker.Console.Program.Main C# (CSharp) Method

Main() public static method

public static Main ( string args ) : void
args string
return void
        public static void Main(string[] args)
        {
            engine = new MinerHost();
            engine.Start();

            global::System.Console.WriteLine();
            global::System.Console.WriteLine();

            global::System.Console.WriteLine();
            global::System.Console.WriteLine();

            // render hash statistics
            var timer = new Timer(TimerCallback, null, 0, 250);

            // wait for input from user to terminate
            global::System.Console.ReadLine();
            timer.Dispose();
            engine.Stop();

            global::System.Console.WriteLine("Total Hashes: {0}", engine.HashCount);
            global::System.Console.ReadLine();
        }