diff --git a/InterceptorClock.java b/InterceptorClock.java new file mode 100644 index 0000000..e7fca2d --- /dev/null +++ b/InterceptorClock.java @@ -0,0 +1,12 @@ +public class InterceptorClock { + public static double trackTime(int iterations) { + int tenthsOfSeconds = 0; + double timeSeconds = 0.0; + for (int i = 0; i < iterations; i++) { + tenthsOfSeconds++; + timeSeconds += 0.1; + } + + return timeSeconds; + } +}