Design and Analysis of Clinical Trials with Time-to-Event Endpoints