public override void end() { timer.Stop(); timer.Dispose(); string note = ("Done in " + elapsed + " seconds!"); bar.Update((int)this.c, (int)max, note); bar = null; }
public override void init(int op, String src, String dest, long max) { bar = new ConsoleProgressBar(); this.max = max; elapsed = 0; timer = new System.Timers.Timer(1000); timer.Start(); timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); }
public override void init(int op, String src, String dest, long max) { bar = new ConsoleProgressBar(); this.max=max; elapsed=0; timer=new System.Timers.Timer(1000); timer.Start(); timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); }
public override void end() { timer.Stop(); timer.Dispose(); string note = ("Done in "+elapsed+" seconds!"); bar.Update((int)this.c, (int)max, note); bar=null; }