Chin up madgav
I remember it feeling like I was rubbish when it became clear I wasn't going to finish near 45 hours, but I soon got over it.
It doesn't really matter how long you take, as long as you're a confident and compitant pilot at the end of it. I could've gone off to the US and done a PPL in under a month, but I don't think this would've suited my needs at the time.
Don't give up, stay focused and make sure you learn something every time you fly.