Added time measuring mechanism