We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46c36dc + fdd7fdc commit a034edeCopy full SHA for a034ede
Week06/timer_esra_kaya.py
@@ -0,0 +1,9 @@
1
+import time
2
+
3
+class Timer:
4
+ def __enter__(self):
5
+ self.start_time = time.time() # Record the start time
6
+ return self
7
8
+ def __exit__(self, exc_type, exc_val, exc_tb):
9
+ self.end_time = time.time() # Record the end time
0 commit comments