Sets the duration of this.
If the animation repeats more than once, sets the duration of one iteration.
a timed animation
the duration to use, in milliseconds