Resetting millis() Counter

123Splat:
Well Perry, since you want to learn ways to reset 'millis()', as I recall, there is a little button on most of the Arduino boards called 'Reset'. Removing power also works.

LMAO! :slight_smile:

Maybe OP understands it better with an example.
This sketch subtracts 4,294,967,295 from 1.
1 - 4,294,967,295 = ?
Leo..

unsigned long currentMillis = 1;
unsigned long previousMillis = 4294967295;
unsigned long difference;

void setup() {
  Serial.begin(9600);
  difference = currentMillis - previousMillis;
  Serial.println(difference);
}

void loop() {
}