Hello

In my code I have to get system time and then add second to it and display in gui
suppose I got system_time = 10:30:40
second (from my code)= 40
display = system_time+second;i.e 10:31:20
I have added a code
Qt Code:
  1. unsigned int Time_second_ecu2uss;
  2. QTime time = QTime::currentTime();
  3. QString timeString = time.toString();
  4. Time_second_ecu2uss = Time_ecu2uss/1000;(getting the second)
  5. qDebug()<<"timeString"<<timeString + Time_second_ecu2uss;
To copy to clipboard, switch view to plain text mode 

but my output is timeString "10:31:20t"