private void RunFrame(object sender, EventArgs e) { _framesRun++; _world.Go(_random); _end = DateTime.Now; var frameDuration = _end - _start; UpdateStatistics(frameDuration); }
public void RunFrame(object sender, EventArgs e) { framesRun++; world.Go(random); end = DateTime.Now; TimeSpan frameDuration = end - start; start = end; UpdateStats(frameDuration); }
private void RunFrame(object sender, EventArgs e) { _framesRun++; _world.Go(_random); _end = DateTime.Now; TimeSpan frameDuration = _end - _start; _start = _end; UpdateStats(frameDuration); _hiveForm.Invalidate(); _fieldForm.Invalidate(); }