Add measure_time method to Pedometer