Hi alc24, The first version of your first sentence is the one I would choose because it is flows nicely and says clearly what you mean. The second version is grammatical and understandable; but, It took me the time it takes... has a very awkward sound to my ear.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.