getPK static method

BigInt getPK()

Implementation

static BigInt getPK() {
  final int elapsed = stopwatch.elapsedMilliseconds;

  if (BigInt.from(elapsed) > upTime) {
    upTime = BigInt.from(elapsed);
  } else {
    upTime += BigInt.one;
  }

  return ((startTime + upTime) << 24) + (deviceId & BigInt.from(0xFFFFFF));
}