示例#1
0
        private void RunFrame(object sender, EventArgs e)
        {
            _framesRun++;
            _world.Go(_random);
            _end = DateTime.Now;
            var frameDuration = _end - _start;

            UpdateStatistics(frameDuration);
        }
示例#2
0
        public void RunFrame(object sender, EventArgs e)
        {
            framesRun++;
            world.Go(random);
            end = DateTime.Now;
            TimeSpan frameDuration = end - start;

            start = end;
            UpdateStats(frameDuration);
        }
示例#3
0
        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();
        }