Line/road length in metres/kilometres in JOSM

Is there a way to define the exact line/road length in metres or kilometres in JOSM. I would like to draw a line which is ex. 10 km long. Besides I would like to check the length of any line/railway track/road I drew. Is there a possibility to do that?

Never mind. I have already found it.