Laufzeit und Watchdog und Timer

This commit is contained in:
2024-05-12 23:22:04 +02:00
parent 6d329c6059
commit abc915bf2b
4 changed files with 183 additions and 1 deletions

View File

@ -28,6 +28,8 @@ import javafx.stage.Stage;
import java.util.Arrays;
import java.util.Objects;
import static fabrik.simulator.pic16f84.Commands.totalExecutionTime;
public class Controller_Frontend {
@ -36,6 +38,7 @@ public class Controller_Frontend {
private int [] ind;
@FXML
private Button stepintoButton;
@ -71,6 +74,9 @@ public class Controller_Frontend {
@FXML
private Button stopButton;
@FXML
private Label totalExecutionTimeLabel;
@ -111,6 +117,7 @@ public class Controller_Frontend {
});
autoRunThread.setDaemon(true);
autoRunThread.start();
totalExecutionTimeLabel.setText("Total Execution Time: " + Commands.getTotalExecutionTime() + " ms");
}
@ -312,6 +319,8 @@ public class Controller_Frontend {
stopButton.setOnAction(this::stopAutoRun);
}
private static void setTRISbuttons(ToggleButtonGroup[] allButtons) {
allTRISbuttons = allButtons;
}