Converts this duration to a frame count at fps.
fps
int toFrames(double fps) => (inMilliseconds * fps / 1000).round();