コード例 #1
0
        private void Update(int iteration)
        {
            var changes       = File.ReadAllLines(Path.Combine(ModelPath, $"change{iteration:00}.txt"));
            var actualActions = _solution.ComputeChanges(changes);

            _stopwatch.Restart();
            var result = actualActions();

            _stopwatch.Stop();
            Report(BenchmarkPhase.Update, iteration);
            using (var target = File.Create(Path.Combine(ModelPath, "results", $"change{iteration:00}Result-{Tool}.xmi")))
            {
                repository.Serializer.Serialize(result, target);
            }
        }