add thread sleep interval support for millisecond precision