How can I get QDateTime to return the time in second and micro second
Unsolved
General and Desktop
-
I am trying to replace ACE_Time_Value and I want to print the current time as <second>.<microsecond> .
QDateTime has a function currentMSecsSinceEpoch() which return the time in millisecond. but I need a more refine the millisecond. -
You can use
QDateTiem dateTimeObject;
dateTimeObject.toString("ss.zzz");Regards
Gerd -
-
Milliseconds is the max resolution of QTime/QDateTime objects. I suspect you have to do your own implementation of a time-class if you need a higher resolution.
Regards
Gerd -
-
Thanks for you response
6/6