<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def handle_tick(self):
 """Internal callback every time 1 second has passed."""


        self.uptime += 1

        for name, interval in self.ticks.items():
            if interval == 0:
                continue

            self.tick_counters[name] += 1
            if self.tick_counters[name] == interval:
                self.graph_input(self.TICK_STREAMS[name], self.uptime)
                self.tick_counters[name] = 0