The total time when you complete all 20 levels includes failed attempt as well :) so the total time is influenced, not the level time.
Thanks for your feedback