Update the documentation about the sign in QElapsedTimer::(m)secsTo
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 2 Apr 2012 18:25:29 +0000 (15:25 -0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 16:10:11 +0000 (18:10 +0200)
commit6da3e4d865e391a1d291c4729f4771a87c6bcd65
treea3ade724cbfec91f59edc876001006470ca439f0
parente979012a2fd96aaf534c633caeb67543072d7366
Update the documentation about the sign in QElapsedTimer::(m)secsTo

Since all implementations calculate other - *this, if other has a higher
value (was started later), then the returned value is positive.

The implementations are:
generic: return other.t1 - t1
win: return ticksToNanoseconds(other.t1 - t1) / 1000000
mac: return absoluteToMSecs(other.t1 - t1);
unix: return (other.t1 - t1) * Q_INT64_C(1000) + fraction...

Task-number: QTBUG-25128
Change-Id: Iff0a3460ae9e9d9bdd82fbaad55657fb60e5235a
Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
src/corelib/tools/qelapsedtimer_generic.cpp