Add logging of needed time for main functions