(str: string)
| 34 | // convert a interval string to milliseconds |
| 35 | // e.g. 1m -> 60000 |
| 36 | export function intervalToMs(str: string): number { |
| 37 | const info = describeInterval(str); |
| 38 | return info.sec * 1000 * info.count; |
| 39 | } |
| 40 | |
| 41 | // histogram & trends |
| 42 | const intervals_in_seconds = { |
no test coverage detected