Times per timeframe
Assuming an operation was completed a specific amount of times in a timeframe, calculate the operations on average that were completed every specified unit of time.
Install
npm install time-per
Usage
const timePer = const timesPressed = 2const secsPassed = 15 `User will press the button per minute`//=> "User will press the button 8 times per minute"
API
timePer(num, time, est)
num
Type: number
The amount of times the operation was completed.
time
Type: number
The amount of time it took for all the operations to complete.
est
Type: number
The units of time to estimate the operation amount for.