You may get slightly better accuracy if you use
TimeMain_last += TimeMain_value;
instead of setting TimeMain_last to the current value of millis. Although in this case you are so far off that this would be insignificant.
You may get slightly better accuracy if you use
TimeMain_last += TimeMain_value;
instead of setting TimeMain_last to the current value of millis. Although in this case you are so far off that this would be insignificant.