aboutsummaryrefslogtreecommitdiff
path: root/Timer.java
diff options
context:
space:
mode:
Diffstat (limited to 'Timer.java')
-rw-r--r--Timer.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/Timer.java b/Timer.java
new file mode 100644
index 0000000..9707052
--- /dev/null
+++ b/Timer.java
@@ -0,0 +1,15 @@
+/*Name: Guitar Hero Project
+ *Description: Contains the method used to determine how long the user has been playing,
+ * used to determine when to send notes
+ */
+package cs;
+
+
+public class Timer
+{
+ private long timeStart = System.currentTimeMillis();
+
+ public int time() {
+ return (int)(System.currentTimeMillis()-timeStart);
+ }
+}