It takes very little time. Follow the prompts in the game and the account is created in a few minutes.
A broadband connection is strongly recommended, since anything slower makes the experience frustrating. These notes apply to the GameSpy-based setup on Windows; other routes may differ slightly.