msTo method

int msTo(
  1. GameOpenStage stage
)

Milliseconds from the open start to stage, or -1 when unreached.

Implementation

int msTo(GameOpenStage stage) {
  if (_startMs < 0) return -1;
  final mark = _marks[stage];
  if (mark == null) return -1;
  return mark - _startMs;
}