aboutsummaryrefslogtreecommitdiff
path: root/src/timer.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.py')
-rw-r--r--src/timer.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timer.py b/src/timer.py
new file mode 100644
index 0000000..769534b
--- /dev/null
+++ b/src/timer.py
@@ -0,0 +1,7 @@
+import pygame
+
+
+class Timer():
+ def __init__(self, duration):
+ self.start = pygame.time.get_ticks()
+ self.duration = duration