elapsed property
int
elapsed
Returns elapsed scan time in milliseconds. If scanning is still in progress then returns difference between scan start and current time. If the start time is undefined return -1
Implementation
int get elapsed {
if (_elapsed != null) {
return _elapsed!;
} else if (_startTime == null || _finishTime == null) {
return -1;
} else {
return DateTime.now().difference(_startTime!).inMilliseconds;
}
}
void
elapsed=(dynamic value)
Implementation
set elapsed(value) {
_elapsed = value;
}