Best time to exercise?

So my gym offers testing of your cortisol levels, so that you can go by that to figure out the best times to exercise.
So on average, most people's cortisol levels are high in the day. I don't know body can tell me is this test worth taking?
and also are there any proven more effective times of the day to work out?