Now create a new layer by pressing ctrl+shift+N/cmd+shift+N. Rename that layer as brush.
Now press and hold shift. Draw a line as shown below. The blue lines you are seeing is nothing but the ruler. You have to do nothing for the ruler line. I created that line just for better mathematics or rather I’d say for better dimension.