diff options
Diffstat (limited to 'src/fallTest/Timer.java')
-rw-r--r-- | src/fallTest/Timer.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fallTest/Timer.java b/src/fallTest/Timer.java new file mode 100644 index 0000000..2ad7efe --- /dev/null +++ b/src/fallTest/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 fallTest; + + +public class Timer +{ + private long timeStart = System.currentTimeMillis(); + + public int time() { + return (int)(System.currentTimeMillis()-timeStart); + } +} |