System time in Seriële monitor

int workT[] = {1000, 2000,3000,4000}; // tijd in milliseconden
int delaytijd = 3000;
int teller = 4;

void setup() {
Serial.begin(9600);

}

void loop() {
for(int i=0; i<teller; i++){ //welke knop is gebruikt?
Serial.print(“Btm :”); // button
Serial.print(i);
Serial.println(" has been used");

/*why is the system time listed here first?

  • Btm :1 has been used
    
  • 16:19:50.988 -> workT 1 is 2000 M-seconds
    
  • What am I doing wrong in these sketch?
    

*/
Serial.print(“workT “); //working time
Serial.print(i);
Serial.print(” is “);
Serial.print(workT[i]);
Serial.println(” M-seconds”);
delay (delaytijd);
}
}

Hi Jacobus,

Your code is fine. I tested it on my Arduino, using the Arduino IDE and no System time was shown. That must be a setting in whatever serial monitor you are using.