Calculating the duration (long, milliseconds) from the Vaadin session.