Dear Guys,
i have a question about the Seriell Port Screen for my Stoppwatch.
if (lauf == 1) //START Time
{
starttime = millis();
lauf = 2;
} else if (lauf == 2) // Actuall Time
{
zwischenzeit = (millis()-starttime)/1000;
Time = ((millis()-starttime)/1000.0);
Serial.println(Time);
} else if (lauf == 3) // Stopp
{
lauf = 0;
finished = millis();
AnzeigeZeit = (millis() - starttime)/1000.0;
Serial.println(AnzeigeZeit);
}
The question is if i start the Time, the time has in seriell monitor 1 seconds delay. If i stopp the time, the time stopp and after 1 second, the seriell monitor write the correct time.
Where is the fault?
Thanks