doc: accept wait time as 2nd argument