In an electric circuit, the voltimeter has the function of doing measurements of the potential difference (voltage) between two specific points.
Thus, you can measure the potential difference between two points in which a resistance is, or also in which a condenser, etc.
Remind that the potential difference is a physical magnitude that gives information about the capacity of the circuit to produce electric current.