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 2115a97 + 59a7f4d commit cdae3c7Copy full SHA for cdae3c7
Week06/timer_ece_akinci.py
@@ -0,0 +1,11 @@
1
+import time
2
+
3
+class Timer:
4
+ def __init__(self):
5
+ self.start_time = None
6
+ self.end_time = None
7
+ def __enter__(self):
8
+ self.start_time = time.time()
9
+ return self
10
+ def __exit__(self, exc_type, exc_val, exc_tb):
11
+ self.end_time = time.time()
0 commit comments