OSDN Git Service
Use THREAD_CPUTIME to measure sensor activation time
CLOCK_BOOTTIME measures the overall time spend by
CPU on all processes while invoking the sensor activation.
In a multi-process multi-threaded environment this
creates the misperception that sensor activation
takes too long when resuming from suspended state.
Use CLOCK_THREAD_CPUTIME_ID instead of CLOCK_BOOTTIME
in order to measure the time spent by CPU on sensor
activation thread exclusively.
Change-Id: I362d76c8976cb566962c03b294462a6d6a0f69e7
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-12362
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Reviewed-on: https://android.intel.com:443/391994