Find how many complete fixed intervals fit inside a duration and their ideal frequency.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Duration is converted to milliseconds and divided by the requested interval length. Complete repetitions use floor division, while events per second are the reciprocal of interval milliseconds.
Interval ms: 500 Duration: 3600
=== Interval Calculator === Interval: 500ms Duration: 3600s Results: Executions: 7200 Frequency: 2.0000 Hz Conversions: Per second: 2.00 Per minute: 120.00 Per hour: 7200.00 Per day: 172800 Interval as: Milliseconds: 500 Seconds: 0.500 Minutes: 0.0083
Polling plans estimate complete requests in a test window, sensor settings translate sample intervals into hertz, and animation loops estimate ideal ticks.