added time based input with timer output thread