I've sold 4 startups. Median time from starting the process to close was 6 months, with the quickest transaction taking 2.5 months and the slowest almost 9 months.
Diligence ranged from 3 weeks to 7 weeks.
Fastest transactions were private company acquisitions. Slowest were public company deals.