Serielle communication Data

Hi guys,
I send data from Arduino 1 to Arduino 2. and i use 9600 Serial.
i just wanna know how can i calculate how much time the Arduino 1 need to send all this Data(Float and Int).
Thank you

``````Serial1.print('<');
Serial1.print('S');
Serial1.print(',');
Serial1.print(temp0);
Serial1.print(',');
Serial1.print(temp1);
Serial1.print(',');
Serial1.print(temp2);
Serial1.print(',');
Serial1.print(temp3);
Serial1.print(',');
Serial1.print(temp4);
Serial1.print(',');
Serial1.print(k);
Serial1.print(',');
Serial1.print(waterONminute);
Serial1.print(',');
Serial1.print(k1);
Serial1.print(',');
Serial1.print(airONminute);
Serial1.print(',');
Serial1.print(T0max0);
Serial1.print(',');
Serial1.print(T0max1);
Serial1.print(',');
Serial1.print(T0min0);
Serial1.print(',');
Serial1.print(T0min1);
Serial1.print(',');
Serial1.print(now.hour());
Serial1.print(',');
Serial1.print(now.minute());
Serial1.print(',');
Serial1.print(now.second());
Serial1.print('>');

``````

Count the number of characters you send.
Multiply by 10 and divide by the bit rate

The amount of time will vary depending on the number of characters needed for the float and int numbers, which is dependent on the actual numeric value.

or let the arduino measure the time

``````unsigned long t0 = millis();
// here go your prints
...
...
Serial.flush(); // ensure all is sent
unsigned long t1 = millis();
``````

the duration in ms will be `(t1 - t0)`

This Topic has been locked as it is the identical or too similar your other post.
Please use the original post and do not duplicate.