From 019ed3244b7d132443d3ef41bd81ce216fc7252c Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Sun, 23 Aug 2020 02:34:59 -0400 Subject: [PATCH] Fixed a few typos --- src/main/java/mattrixwv/Stopwatch.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/mattrixwv/Stopwatch.java b/src/main/java/mattrixwv/Stopwatch.java index 6c0df07..647bb28 100644 --- a/src/main/java/mattrixwv/Stopwatch.java +++ b/src/main/java/mattrixwv/Stopwatch.java @@ -36,7 +36,7 @@ public class Stopwatch{ //Returns a long with the elapsed time in nanoseconds. Used by other functions to get the time before converting it to the correct resolution private Long getTime(){ if(startTime == null){ - ///This should throw an exception instead of returning 0 + //TODO: This should throw an exception instead of returning 0 return 0L; } else if(stopTime == null){ @@ -55,7 +55,7 @@ public class Stopwatch{ //Get the time as close to returning from the function as possible startTime = System.nanoTime(); } - //SImulates stoping a stopwatch by saving the time + //Simulates stopping a stopwatch by saving the time public void stop(){ //Set the stopTime as close to call time as possible stopTime = System.nanoTime(); @@ -135,7 +135,7 @@ public class Stopwatch{ case MINUTE: time += " minutes"; break; case HOUR: time += " hours"; break; case ERROR: - default: time = "There was an error computing the time"; break; ///This should throw an error instead + default: time = "There was an error computing the time"; break; //TODO: This should throw an error instead } //Return the string return time;