changed to microsecond timer