diff options
author | Aidan Ross <aross02@fairport.org> | 2023-05-10 12:16:21 +0000 |
---|---|---|
committer | Aidan Ross <aross02@fairport.org> | 2023-05-10 12:16:21 +0000 |
commit | 49203cc510dc71f20650e9a4eb0ed717d0df7933 (patch) | |
tree | 285b21423cec0887da3aecf86bd7718b16d86830 /Timer.java | |
parent | 4a77c1cf54175d7714b288197160b46c700a9117 (diff) | |
download | NPEhero-49203cc510dc71f20650e9a4eb0ed717d0df7933.tar.gz NPEhero-49203cc510dc71f20650e9a4eb0ed717d0df7933.tar.bz2 NPEhero-49203cc510dc71f20650e9a4eb0ed717d0df7933.zip |
Working version of the 5 lane test, with a test map to play as well
Diffstat (limited to 'Timer.java')
-rw-r--r-- | Timer.java | 15 |
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); + } +} |