How do you access the ruler?
Open the toolbar in the 3D Viewport using T. Navigate to the Grease Pencil section and click the 'Ruler/Protractor' button. You can now click and drag in the 3D Viewport to create a ruler and or protractor measurement.