toFrames method

int toFrames(
  1. double fps
)

Converts this duration to a frame count at fps.

Implementation

int toFrames(double fps) => (inMilliseconds * fps / 1000).round();