checktime on focus and bufferenter