Examples
Examples
Try the starting example
- Unsigned counter width (bits)
- 32
- Counter clock (Hz)
- 1000
- Start counter
- 4000000000
- Later counter
- 100
- Time until next rollover (seconds)
- 294,967.296
- Modular elapsed interval (seconds)
- 294,967.396
Try another scenario
- Unsigned counter width (bits)
- 32
- Counter clock (Hz)
- 2000
- Start counter
- 4000000000
- Later counter
- 100
- Time until next rollover (seconds)
- 147,483.648
- Modular elapsed interval (seconds)
- 147,483.698
Calculation method
Calculation method
Time until next rollover (seconds)
(2^bits−start)/clock.
Modular elapsed interval (seconds)
(later−start mod2^bits)/clock; assumes at most one wrap.
Symbols and units
- a
- Unsigned counter width (bits)
- b
- Counter clock (Hz)
- c
- Start counter
- d
- Later counter
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Counter width, clock frequency, start count. Returns Rollover time and modular intervals. All coefficients and observations are user supplied; results describe only the stated mathematical model. Quantities are deterministic calculations from supplied observations and assumptions; no external data is fetched. Supported limits: Finite inputs only; numeric fields bounded as labelled. Lists and JSON records are limited to 256 entries unless a stricter tool bound is stated. No automatic design approval, legal conclusion, treatment recommendation or safety certification. Unsigned counter width (bits): minimum 1, maximum 48. Counter clock (Hz): minimum 1e-12, maximum 1000000000000.0. Start counter: minimum 0, maximum 281474976710655. Later counter: minimum 0, maximum 281474976710655.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.