use simpler map instead of inject for rendering time calculation, log error if custom hook fails