def get_fps(self) -> float:
    'Return FPS as a float.'
    total_time = sum(self.frame_times)
    if (total_time == 0):
        return 0
    return (len(self.frame_times) / sum(self.frame_times))
Return FPS as a float.
def get_fps(self) -> float:
    
    total_time = sum(self.frame_times)
    if (total_time == 0):
        return 0
    return (len(self.frame_times) / sum(self.frame_times))