setTimeInterval method
Sets the sampling timestamp of data within an interval.
Implementation
void setTimeInterval(
DateTime startTime,
DateTime endTime,
TimeUnit timeUnit,
) {
this.startTime = startTime;
this.endTime = endTime;
this.timeUnit = timeUnit;
_isSampling = true;
}