diff options
author | Aidan Ross <aross02@fairport.org> | 2023-05-25 10:27:55 -0400 |
---|---|---|
committer | Aidan Ross <aross02@fairport.org> | 2023-05-25 10:27:55 -0400 |
commit | 414d5128c379916a50a015210e6d7caced1825f5 (patch) | |
tree | ec0db6e4c2dfa9067ea330b4bdbfeafda94f0851 /src/GamePlay/Timer.java | |
parent | 389520ddc5064c21dcb0e9317366078ce1c88b65 (diff) | |
parent | 1d0890cf11f88e274beddf9fbc132fb80c2f054c (diff) | |
download | NPEhero-414d5128c379916a50a015210e6d7caced1825f5.tar.gz NPEhero-414d5128c379916a50a015210e6d7caced1825f5.tar.bz2 NPEhero-414d5128c379916a50a015210e6d7caced1825f5.zip |
Merge branch 'main' of https://gitlab.sowgro.net/guitarheros/guitarhero
Diffstat (limited to 'src/GamePlay/Timer.java')
-rw-r--r-- | src/GamePlay/Timer.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/GamePlay/Timer.java b/src/GamePlay/Timer.java deleted file mode 100644 index 5d1ddae..0000000 --- a/src/GamePlay/Timer.java +++ /dev/null @@ -1,24 +0,0 @@ -/*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 GamePlay; - - -public class Timer -{ - private long timeStart = System.currentTimeMillis(); - private int bpm; - - public Timer(int newBpm) { - bpm = newBpm; - } - - public Timer() { - bpm = 60000; - } - - public double time() { - return ((double)(System.currentTimeMillis()-timeStart))*(bpm/60000.0); - } -} |