diff options
| author | Moisis <moisis.george@yahoo.com> | 2023-05-09 10:53:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-09 10:53:08 +0300 |
| commit | 1c409760e93ce1641a7d1bcd5cd09a34ff86fe6b (patch) | |
| tree | a1e9497fe359613f29164c589a499f727ef71d5c /src/timer.py | |
| parent | 1c33c06df4d40e708d526cd00d3b8392d931b7c2 (diff) | |
| parent | 439ae67f933ee85bd425566cabac64815db4096e (diff) | |
| download | Macpan-1c409760e93ce1641a7d1bcd5cd09a34ff86fe6b.tar.xz Macpan-1c409760e93ce1641a7d1bcd5cd09a34ff86fe6b.zip | |
Merge branch 'master' into TryatGUI
Diffstat (limited to 'src/timer.py')
| -rw-r--r-- | src/timer.py | 7 |
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 |
