advance method

int advance(
  1. int ms
)

Advance virtual time by ms (negative values are clamped to 0 — time only moves forward). Returns the new nowMs.

Implementation

int advance(int ms) {
  if (ms > 0) _nowMs += ms;
  return _nowMs;
}