qtmobility/examples/sensors/accel_perf/README
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:51:22 +0300
changeset 1 2b40d63a9c3d
permissions -rw-r--r--
Revision: 201011 Kit: 201015

Note that this really belongs in a unit test that builds the library
since it depends on a change to the library.

For this to work accurately a check in QSensorBackend::newReadingAvailable()
needs to be commented out while building the library. The check is:

    if (d->updatePolicy == QSensor::PolledUpdates)
        return; // We don't emit the signal if we're polling

With this check in place, the use of sensor.poll() to measure performance
does not work.