Click the ruler button to open the measure panel.
Distance mode: Click points to measure distance. Double-click to finish.
Area mode: Click vertices to draw a polygon. Double-click to close and calculate area.
Press Escape to cancel, Enter to finish.