changed the time polling to microseconds