How long frame is held, in seconds.
frame
Infinite where the frame is never left.
double duration(int frame) => _durations[frame];