Replaced Threaded approach with a Non Blocking Polling based apprach. Fixed the Time measurement Bug