add inputRate and outputRate
add localtime draw in frame