aboutsummaryrefslogtreecommitdiff
path: root/src/GamePlay/Timer.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/GamePlay/Timer.java (renamed from src/fallTest/Timer.java)6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fallTest/Timer.java b/src/GamePlay/Timer.java
index d8fd2e3..5d1ddae 100644
--- a/src/fallTest/Timer.java
+++ b/src/GamePlay/Timer.java
@@ -2,7 +2,7 @@
*Description: Contains the method used to determine how long the user has been playing,
* used to determine when to send notes
*/
-package fallTest;
+package GamePlay;
public class Timer
@@ -14,6 +14,10 @@ public class Timer
bpm = newBpm;
}
+ public Timer() {
+ bpm = 60000;
+ }
+
public double time() {
return ((double)(System.currentTimeMillis()-timeStart))*(bpm/60000.0);
}