perSecond

fun perSecond(samples: List<Pair<Long, Map<String, Double>>>, window: LongRange, keys: List<String>): List<Map<String, Any>>

The per-second rate of each of keys between consecutive samples, from the last one at or before the window's start to the first at or after its end; t is the later sample's second in the window.