It takes me an hour to begin to function in the morning as well... and I do probably have sleep apnea but nothing can be done for that for me... I also have allergies and chronic pain that don't let me sleep well... or think well at times...
Try to keep track of the issues and see if you can nail it down.