added time measure method