Escape Time of Josephson Junctions for Signal Detection