You don't have to worry about functioning well. Your only job is to heal! And sleep whenever and wherever you can. Don't worry about the time. Just sleep when you can. This is such a common reaction to this surgery and just about all of us have complained about it. I, too used to potty a lot, but realized when I did, I was getting rid of swelling in my knee. That's a good thing and probably what you are doing.
United States
I'm so glad your sleeping and nightly bathroom trips are improving!