Jormungandr: add the display_duration in the connection api

since it's the same thing, it's good