|
@@ -69,6 +69,11 @@ public class SimulationManager extends Observable {
|
|
*/
|
|
*/
|
|
private PacketExportManager exportMan;
|
|
private PacketExportManager exportMan;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Peformance Eval
|
|
|
|
+ */
|
|
|
|
+ private long perfStart = 0;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Creates a new Simulationmanager
|
|
* Creates a new Simulationmanager
|
|
*
|
|
*
|
|
@@ -160,6 +165,7 @@ public class SimulationManager extends Observable {
|
|
* Start the simulation
|
|
* Start the simulation
|
|
*/
|
|
*/
|
|
public void startSimulation() {
|
|
public void startSimulation() {
|
|
|
|
+ perfStart=System.currentTimeMillis();
|
|
timer.start();
|
|
timer.start();
|
|
notifyPanels();
|
|
notifyPanels();
|
|
}
|
|
}
|
|
@@ -169,6 +175,9 @@ public class SimulationManager extends Observable {
|
|
*/
|
|
*/
|
|
public void stopSimulation() {
|
|
public void stopSimulation() {
|
|
timer.stop();
|
|
timer.stop();
|
|
|
|
+ long perfEnd = System.currentTimeMillis();
|
|
|
|
+ long duration = perfEnd - perfStart;
|
|
|
|
+ System.out.println("Duration: "+duration/1000.0);
|
|
notifyPanels();
|
|
notifyPanels();
|
|
}
|
|
}
|
|
|
|
|