From fc6952418af6ad50120e86f1edc5d523a736df32 Mon Sep 17 00:00:00 2001 From: vivek-kumar-2024 Date: Tue, 10 Jun 2025 00:28:42 -0700 Subject: [PATCH] Create InterceptorClock.java --- InterceptorClock.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 InterceptorClock.java 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; + } +}