def tick(self):
    'Determine tick amount.'
    t_1 = time.perf_counter()
    dt = (t_1 - self.time)
    self.time = t_1
    self.frame_times.append(dt)
Determine tick amount.
def tick(self):
    
    t_1 = time.perf_counter()
    dt = (t_1 - self.time)
    self.time = t_1
    self.frame_times.append(dt)