add option to not wait for processing of batch

add timer for outputhandler