From 77682ba380201c4fff227fbd537ce98ac48ffed1 Mon Sep 17 00:00:00 2001 From: beytullaharslannn <151189674+beytullaharslannn@users.noreply.github.com> Date: Thu, 2 Apr 2026 20:55:16 +0300 Subject: [PATCH] Create timer_beytullah_arslan.py --- Week06/timer_beytullah_arslan.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Week06/timer_beytullah_arslan.py diff --git a/Week06/timer_beytullah_arslan.py b/Week06/timer_beytullah_arslan.py new file mode 100644 index 00000000..4cfbd390 --- /dev/null +++ b/Week06/timer_beytullah_arslan.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_val, exc_tb): + self.end_time = time.time() +