public Excecution CreateExcecution(Path path) { Stopwatch sw = new Stopwatch(); sw.Start(); var result = CalclulateUniqePoints(path); sw.Stop(); var excecution = new Excecution { Duration = sw.Elapsed.TotalSeconds, Commands = path.Commands.Count, Result = result, Stamp = DateTime.Now }; // _repository.Add(excecution); return(excecution); }
public void Add(Excecution excecution) { _context.Add(excecution); }