def get_duration(self):
        return sum([frame.duration for frame in self.frames \
                                   if frame.duration is not None])
Get the total duration of the animation in seconds.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/image/__init__.py/Animation.get_duration