def getLastMessageElapsedTime(self):
    now = float(time.time())
    return (now - self.lastMessageTime)
def getLastMessageElapsedTime(self):
    now = float(time.time())
    return (now - self.lastMessageTime)