Demonstrate the use of the MeasureTool widget. It contains 2 controls : "Lenght" and "Area and Perimeter" measures. The default units used are "metric" and "english". You can add "hectare" as demonstrated.

You can also add the last (current) segment measure using the "showLastSegmentMeasure" as demonstrated.