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 cdeded7 + 3217332 commit 507f8e0Copy full SHA for 507f8e0
Week06/timer_enes_dogan.py
@@ -0,0 +1,10 @@
1
+import time
2
+
3
+class Timer:
4
+ def __enter__(self):
5
+ self.start_time = time.time()
6
+ return self
7
8
+ def __exit__(self, exc_type, exc_val, exc_tb):
9
+ self.end_time = time.time()
10
+ return True
0 commit comments