From 551d9300163af02fd77390144a6a876e995e707c Mon Sep 17 00:00:00 2001 From: 61XeNoN <148587793+61XeNoN@users.noreply.github.com> Date: Sat, 4 Apr 2026 16:26:43 +0300 Subject: [PATCH] Create timer_abdulsamet_kucuk.py --- Week06/timer_abdulsamet_kucuk.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Week06/timer_abdulsamet_kucuk.py diff --git a/Week06/timer_abdulsamet_kucuk.py b/Week06/timer_abdulsamet_kucuk.py new file mode 100644 index 00000000..6ed1a7f8 --- /dev/null +++ b/Week06/timer_abdulsamet_kucuk.py @@ -0,0 +1,13 @@ +import time + +class Timer: + def __init__(self): + self.start_time = 0.0 + self.end_time = 0.0 + + def __enter__(self): + self.start_time = time.perf_counter() + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.end_time = time.perf_counter()