Results don't take long to count, even though there are about 30 million ballots. Polls close at 10pm, the first constituency declares some time between 11 and midnight usually, it's 90% done by about 6am[1], and the last will be some time on the second day if there are multiple recounts. Due to the FPTP system, it doesn't really even matter about the rest once the post is already reached - which is its own problem, but it's not like machine-based recount drama doesn't drag on for ages too.
[1]: https://researchbriefings.files.parliament.uk/documents/CBP-...