time reorientation device

i tend to have my best sleep (seemingly) right before the alarm goes up. if i knew when the best sleep was, i could reorient time so that the alarm time was farthest away.