Skip to content

sh1chan/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

timer

scheduled timers

class Task:
	def __init__(self, name, seconds):
		self.name = name
		self.seconds = seconds

class Timer:
	def __init__(self):
		self.tasks = []
	def add_tasks(self, task):
		self.tasks.append(task)
	def execute_tasks(self):
		for task in self.tasks:
			pass

timer = Timer()

timer.add_task(Task('Find', 30))
# ...
timer.add_task(Task('Follow', 30))

timer.execute_tasks()

Releases

No releases published

Packages

No packages published