Duration of info message on mapview method after creating and clicking on the polyline

on Click of route polyline, unable to get duration info msg on mapview().
How can I get duration of info message on map view method after creating and clicking on the polyline