From 107ef4c16d8007559a4de7c68f590df92f8f415f Mon Sep 17 00:00:00 2001 From: Aidan Ross Date: Tue, 9 May 2023 12:24:36 +0000 Subject: Here's all the classes I needed to make the lane test work. --- Timer.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Timer.java (limited to 'Timer.java') 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); + } +} -- cgit v1.2.3