QTimeSpan: interest?
-
A timespan has some pitfalls:
If it uses walltime as the two reference points, you must handle cases where start time is actually after end time. This is because there system time can be updated from a time source (and might jump back in time). IIRC on cell phones this happens quite often, but it can also happen if your desktop system is connected to a NTP time source. It can also happen if you are not connected to a external time source, for instance due to DST changes.
This is also mentioned in the documentation for QTime::elapsed(), which is often used for the same purpose. (actually it says that the result is undefined) -
voted too
-
I need this class, seems to be very useful!!!
-
Hello Andre,
I think QTimeSpan class is really a missing part of the Qt Project. Thanks for yours and Sean's efforts!
I have a question regarding the legality. Is it possible to use your sources in a commercial project (we use Qt with LGPL) as a part of a code-base (do not incorporate it to the Qt libs) before it becomes a part of Qt officially?
Thanks!UPD: English has been slightly improved.
-
Please update Qt bug report link to https://bugreports.qt.io/browse/QTBUG-16556