Added TimeMeasurer class for measuring elapsed time