elapsedNanoseconds property

int get elapsedNanoseconds

Returns the elapsed time in nanoseconds.

Implementation

int get elapsedNanoseconds {
  if (_startedAt == 0) {
    _startedAt = _stopwatch.elapsedTicks;
  }

  return (_stopwatch.elapsedTicks - _startedAt) * _k;
}