Millis() not working

Definitely not. There are no delays is setup() and loop(). The first time timeBegin is set, millis() returns 0. There are only about 300µs from starting the millis() counter up to this point. You can check if you print micros() at that point.

1 Like