I have this function, written in C++ using QTcreator, to return the current time of the system being used.
void cLogDataBase::writetime()
{
QString Str;
Str = QDateTime::currentDateTime().toString("hh:mm:ss.zzz");
writestr(Str);
}
My issue is that I return my data to a CSV file and then again as a graph so I do require the axis / values to be consistent. In this case Time
.
This image better illustrates my issues, as with the second value set ( or values between 3 and 3.9 seconds) it goes 3.1,3.2..3.4
, completely skipping 3.2 seconds and thus causing the output to be skewed
Is it possible to manipulate my Str
variable to do this or would something else in my code control this ? if its the latter then I can look through and post another question. I just want to see if its possible to fix within this function.
Thanks in Advance.