the time it takes to (do something)
English speakers use the word "take" to talk about time. A trip "takes" a certain amount of time, like 15 minutes or an hour.
It only took 10 minutes.
If you want to talk about how long something lasts, use the expression "the time it takes to ___". For example:
In the time it takes to complain about it, you could just as easily get up and fix it yourself.