public long getChatLength() {
        return endTime - startTime;
    }
Returns the total length of the chat session.

@return length of chat session in milliseconds.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java