what is the instrument that is used to measue resistance