Currently, it’s not possible to measure the duration or length of sessions within Heap. We have average time between charts as well as time engaged options that are similar, though these only measure time between events, not sessions.
You can use Heap Connect (paid feature) to export your Heap data into an external data warehouse for further analysis. For more information and examples of what you can do (including time on site), see our list of Heap Connect: Common Queries.