private void timer1_Tick(object sender, EventArgs e) { double hashrate = 0; foreach (Worker w in mWorkers) hashrate += w.mHashrate; lblHashrate.Text = String.Format("Hashrate: {0:N} / second", hashrate); }