toFrames method

int toFrames(
  1. double fps
)

Frame count at a given fps (e.g. 24, 30, 60).

Implementation

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