From 543145e6dcbe2172937d9d7973b2d60077bcb2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Esat=20Ulu=C3=B6z?= <161027888+Ismail-Esat-Uluoz@users.noreply.github.com> Date: Sun, 5 Apr 2026 21:48:52 +0300 Subject: [PATCH] Create timer_ismailesat_uluoz.py --- Week06/timer_ismailesat_uluoz.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Week06/timer_ismailesat_uluoz.py diff --git a/Week06/timer_ismailesat_uluoz.py b/Week06/timer_ismailesat_uluoz.py new file mode 100644 index 00000000..2c7dae95 --- /dev/null +++ b/Week06/timer_ismailesat_uluoz.py @@ -0,0 +1,13 @@ +import time + +class Timer: + def __init__(self): + self.start_time = None + self.end_time = None + + def __enter__(self): + self.start_time = time.time() + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.end_time = time.time()