way to profile time taken