Moved time measurement into a fragment