I had slept for six or seven hours. When I woke up, the sun was sinking in the west.
When I woke up, I had slept for six or seven hours and the sun was sinking in the west.
I must have slept for six or seven hours, for the sun, when I awoke, was slanting towards the west.