Enabled generation
This commit is contained in:
parent
5cc9d26c62
commit
a1b06003f7
@ -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("Готово!");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user