modified button_released_time to return the duration between the previous two releases when just released