Basic usage
const durations = await detectFPS({ leave_alert: leave_alert_on_fps, frames_count,});const average_frame_ms = durations.reduce((a, b) => a + b) / durations.length; Copy
const durations = await detectFPS({ leave_alert: leave_alert_on_fps, frames_count,});const average_frame_ms = durations.reduce((a, b) => a + b) / durations.length;
Example
Basic usage