toRateStringWithBestUnit

Converts to a rate with appropriate units

Parameters

duration

time elapsed to obtain this number of events

dp

number of decimal points to display the rate