Allow microsecond precision for input delay, and use this for threads tests

On travis CI this should allow tests to pass by putting less load on the system