To ensure that the custard sets properly, you should chill the cheesecake for at least 4 hours prior to serving. I generally make cheesecake the night before I plan on serving it just to make sure it gets plenty of beauty rest in the fridge.