diff options
Diffstat (limited to 'apcs/KeyDetection.java')
-rw-r--r-- | apcs/KeyDetection.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/apcs/KeyDetection.java b/apcs/KeyDetection.java deleted file mode 100644 index 9fc9db6..0000000 --- a/apcs/KeyDetection.java +++ /dev/null @@ -1,27 +0,0 @@ -/*Name: - *Date: - *Period: - *Teacher: - *Description: - */ -package apcs; - -import javax.swing.*; -import java.awt.event.ActionEvent; - -public class KeyDetection extends AbstractAction -{ - long timeStart = System.currentTimeMillis(); - private char key; - public KeyDetection(char ch){ - key = ch; - } - - public void actionPerformed(ActionEvent e) - { - // TODO Auto-generated method stub - int time = (int)((System.currentTimeMillis()-timeStart)); - System.out.println(key + ": " + time); - } - -} |