# Path: foos/clock.py
# class Clock:
#     def __init__(self, name):
#         self.name = name
#         self.time = None
# 
#     def set(self, ts):
#         self.time = ts
# 
#     def get(self):
#         return self.time
# 
#     def reset(self):
#         self.time = time.time()
# 
#     def get_diff(self):
#         if self.time:
#             return time.time() - self.time
#         else:
#             return None


from collections import namedtuple
from foos.clock import Clock
import logging
import foos.config as config
#!/usr/bin/python3



State = namedtuple('State', ['yellow_goals', 'black_goals', 'last_goal'])
logger = logging.getLogger(__name__)


class Plugin:
    def __init__(self, bus):

# Path: foos/clock.py
# class Clock:
#     def __init__(self, name):
#         self.name = name
#         self.time = None
# 
#     def set(self, ts):
#         self.time = ts
# 
#     def get(self):
#         return self.time
# 
#     def reset(self):
#         self.time = time.time()
# 
#     def get_diff(self):
#         if self.time:
#             return time.time() - self.time
#         else:
#             return None


# Path: plugins/score.py
from collections import namedtuple
from foos.clock import Clock
import logging
import foos.config as config

#!/usr/bin/python3



State = namedtuple('State', ['yellow_goals', 'black_goals', 'last_goal'])
logger = logging.getLogger(__name__)


class Plugin:
    def __init__(self, bus):

        self.last_goal_clock = Clock('last_goal_clock')