It depends, really. When you buy hosting with a .com domain, it’s usually within minutes. Some registrars need more information, though. In these cases, it can take a bit longer.