diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-07-30 19:57:06 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-12-20 07:38:13 +0100 |
commit | 5d366f7e422129ec0c229b78f247b66e4ba63a59 (patch) | |
tree | a92ac0003f2972b16de364c5dadae721e169c4d2 /src/corelib/tools/qelapsedtimer_generic.cpp | |
parent | 71d576abc85813c75d2aa2ec7704a09f93c11792 (diff) |
Display the QElapsedTimer reference time in %{time}
This allows the time to be synchronized between different programs, as
opposed to how long it has been since the message pattern was first
parsed...
Change-Id: If8bdfa0d997ca418a5fcae40f8c34fb77f90d2aa
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/corelib/tools/qelapsedtimer_generic.cpp')
-rw-r--r-- | src/corelib/tools/qelapsedtimer_generic.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qelapsedtimer_generic.cpp b/src/corelib/tools/qelapsedtimer_generic.cpp index f1f17b7fe5..734f693072 100644 --- a/src/corelib/tools/qelapsedtimer_generic.cpp +++ b/src/corelib/tools/qelapsedtimer_generic.cpp @@ -134,6 +134,10 @@ qint64 QElapsedTimer::elapsed() const Q_DECL_NOTHROW number of milliseconds since January 1st, 1970 at 0:00 UTC (that is, it is the Unix time expressed in milliseconds). + On Linux, Windows and OS X/iOS systems, this value is usually the time + since the system boot, though it usually does not include the time the + system has spent in sleep states. + \sa clockType(), elapsed() */ qint64 QElapsedTimer::msecsSinceReference() const Q_DECL_NOTHROW |