i want the difference between two DateTime in milliseconds
QDateTime oStartTime = QDateTime::currentDateTime();
\\\ 30 milliseconds difference.
QDateTime oEndtTime = QDateTime::currentDateTime();
now am trying like this to get difference in milliseconds
quint64 difference= (oStartTime.secsTo(oEndtTime )*1000);
the result is "0" because here we are converting into second's so am not getting exact output to get difference in milliseconds
am using another method
quint64 difference= (oStartTime.time().msecsTo(oEndtTime .time()));
here am getting exact time difference in milliseconds but if we change the date for oEndtTime the the difference of days are not coming , because time() is limited to 24 hours only , if i want to get DateTime difference in more than 1 day then time() is not useful , please help me to get out of this
am struck here to convert DateTime difference in milliseconds .