added measurement of time for lists and sets