refresh method
Implementation
Future<bool> refresh() async {
final nativeAnchor = _nativeAnchorMs;
if (nativeAnchor == null) return true;
final nativeNow = await _nativeElapsedMilliseconds();
if (nativeNow == null || nativeNow < nativeAnchor) return false;
_elapsedBaseMs = math.max(nativeNow - nativeAnchor,
_elapsedBaseMs + _elapsed.elapsedMilliseconds);
_elapsed.reset();
return true;
}