This is a difficult question to answer as many factors go into how quickly you level up. Some of those factors include your skill, the type and quality of materials that you use for enchanting, and the enchantment book & method that you are using. Generally speaking though, it can take anywhere from 20 minutes to an hour (or more) depending on these parameters.