log query time and process time for last_readings_from_all_devices