It depends what it is you are trying to measure. Unless you are using a low power mode the CPU will be running all the time. If you want to know the spare CPU capacity then measure the amount of time the idle task is running (assuming there are no other tasks that are running at the idle priority). The longer you gather stats for the more accurate the result will be.