diff --git a/ConstructionCompany/ConstructionCompanyView/FormLogin.cs b/ConstructionCompany/ConstructionCompanyView/FormLogin.cs index 452ecb6..169c7d7 100644 --- a/ConstructionCompany/ConstructionCompanyView/FormLogin.cs +++ b/ConstructionCompany/ConstructionCompanyView/FormLogin.cs @@ -57,32 +57,32 @@ namespace ConstructionCompanyView private void buttonGenerate_Click(object sender, EventArgs e) { - //Stopwatch stopwatch = new Stopwatch(); - //stopwatch.Start(); - //_random.GenerateMaterials(); - //stopwatch.Stop(); - //long materials = stopwatch.ElapsedMilliseconds; - //stopwatch.Restart(); - //_random.GeneratePositions(); - //stopwatch.Stop(); - //long positions = stopwatch.ElapsedMilliseconds; - //stopwatch.Restart(); - //_random.GenerateEmployees(); - //stopwatch.Stop(); - //long employees = stopwatch.ElapsedMilliseconds; - //stopwatch.Restart(); - //_random.GenerateOrders(); - //stopwatch.Stop(); - //long orders = stopwatch.ElapsedMilliseconds; - //stopwatch.Restart(); - //_random.GenerateEmployeesOrders(); - //long employeesOrders = stopwatch.ElapsedMilliseconds; - //stopwatch.Restart(); - //_random.GenerateMaterialOrders(); - //stopwatch.Stop(); - //long materialOrders = stopwatch.ElapsedMilliseconds; + Stopwatch stopwatch = new Stopwatch(); + stopwatch.Start(); + _random.GenerateMaterials(); + stopwatch.Stop(); + long materials = stopwatch.ElapsedMilliseconds; + stopwatch.Restart(); + _random.GeneratePositions(); + stopwatch.Stop(); + long positions = stopwatch.ElapsedMilliseconds; + stopwatch.Restart(); + _random.GenerateEmployees(); + stopwatch.Stop(); + long employees = stopwatch.ElapsedMilliseconds; + stopwatch.Restart(); + _random.GenerateOrders(); + stopwatch.Stop(); + long orders = stopwatch.ElapsedMilliseconds; + stopwatch.Restart(); + _random.GenerateEmployeesOrders(); + long employeesOrders = stopwatch.ElapsedMilliseconds; + stopwatch.Restart(); + _random.GenerateMaterialOrders(); + stopwatch.Stop(); + long materialOrders = stopwatch.ElapsedMilliseconds; _random.GenerateAdditionalMaterialOrders(); - //MessageBox.Show($"materials={materials}, positions={positions}, employees={employees}, orders={orders}, materialOrders={materialOrders}, employeeOrders={employeesOrders}", "Результаты"); + MessageBox.Show($"materials={materials}, positions={positions}, employees={employees}, orders={orders}, materialOrders={materialOrders}, employeeOrders={employeesOrders}", "Результаты"); MessageBox.Show("Готово!"); } }