TimeSampler

class TimeSampler(var timeWindow: TimeSpan = 1.seconds)

Class to count the number of times a sample was added in a timeWindow

Constructors

Link copied to clipboard
constructor(timeWindow: TimeSpan = 1.seconds)

Properties

Link copied to clipboard
val count: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun add()