Welcome to the forums.
Both are grammatical. Which to use is a matter of context.
How about coming to the game with us tomorrow?
A Impossible. I work the whole time and am exhausted by the end of the day.
B I would love to come with you, but I work the whole of the time on my project and haven't a moment to spare.
Student or Learner