+timerthread added for calculation of elapsed time