Trying to do things that aren't work while you're paid to do work is an easy way to short circuit your career prospects. Don't do that.
Make good use of the time. Talk to your manager about things you could be doing that would improve the codebase you work on and enable you to learn new things. Better yet, make some suggestions.